Skip to content

Commit

Permalink
fix: Build fix from rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Dec 30, 2024
1 parent 7f78155 commit 125ee60
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Lib9c/Action/Guild/ClaimGuildUnbonded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public override IWorld Execute(IActionContext context)
}

var repository = new ValidatorRepository(guildRepository);
var validatorDelegator = repository.GetValidatorDelegator(guild.Address);
var validatorDelegator = repository.GetDelegator(guild.Address);
validatorDelegator.ReleaseUnbondings(context.BlockIndex);

return repository.World;
Expand Down
2 changes: 1 addition & 1 deletion Lib9c/Action/Guild/ClaimUnbonded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public override IWorld Execute(IActionContext context)

var guildParticipant = repository.GetGuildParticipant(context.Signer);
var guild = repository.GetGuild(guildParticipant.GuildAddress);
var guildDelegator = repository.GetGuildDelegator(context.Signer);
var guildDelegator = repository.GetDelegator(context.Signer);
guildDelegator.ReleaseUnbondings(context.BlockIndex);

return repository.World;
Expand Down
8 changes: 4 additions & 4 deletions Lib9c/Action/ValidatorDelegation/ClaimValidatorUnbonded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public override IWorld Execute(IActionContext context)

var world = context.PreviousState;
var repository = new ValidatorRepository(world, context);
var validatorDelegatee = repository.GetValidatorDelegatee(context.Signer);
var validatorDelegator = repository.GetValidatorDelegator(context.Signer);
var validatorDelegatee = repository.GetDelegatee(context.Signer);
var validatorDelegator = repository.GetDelegator(context.Signer);
validatorDelegator.ClaimReward(validatorDelegatee, context.BlockIndex);

var guildRepository = new GuildRepository(repository);
var guildDelegatee = guildRepository.GetGuildDelegatee(context.Signer);
var guildDelegator = guildRepository.GetGuildDelegator(context.Signer);
var guildDelegatee = guildRepository.GetDelegatee(context.Signer);
var guildDelegator = guildRepository.GetDelegator(context.Signer);
guildDelegator.ClaimReward(guildDelegatee, context.BlockIndex);

return guildRepository.World;
Expand Down
2 changes: 1 addition & 1 deletion Lib9c/Delegation/Delegator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public void ReleaseUnbondings(long height)
var unbondings = Metadata.UnbondingRefs.Select(
unbondingRef => UnbondingFactory.GetUnbondingFromRef(unbondingRef, Repository));
ReleaseUnbondings(unbondings, height);
Repository.SetDelegator(this);
Repository.SetDelegator((TDelegator)this);
}

private void ReleaseUnbondings(IEnumerable<IUnbonding> unbondings, long height)
Expand Down
2 changes: 1 addition & 1 deletion Lib9c/Model/Guild/GuildDelegator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private bool IsValidator(Address address)
var repository = new ValidatorRepository(Repository);
try
{
repository.GetValidatorDelegatee(address);
repository.GetDelegatee(address);
return true;
}
catch (FailedLoadStateException)
Expand Down

0 comments on commit 125ee60

Please sign in to comment.