Skip to content

Commit

Permalink
Merge pull request #2635 from planetarium/release/212
Browse files Browse the repository at this point in the history
Release 212
  • Loading branch information
ipdae authored Nov 18, 2024
2 parents 2d34f22 + 95e207c commit 73f9d75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions NineChronicles.Headless/GraphTypes/StateQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -765,11 +765,6 @@ public StateQuery()
{
var agentAddress = new AgentAddress(context.GetArgument<Address>("agentAddress"));
var validatorAddress = context.GetArgument<Address>("validatorAddress");
if (!(context.Source.WorldState.GetAgentState(agentAddress) is { } agentState))
{
return null;
}

var repository = new ValidatorRepository(new World(context.Source.WorldState), new HallowActionContext { });
var delegatee = repository.GetValidatorDelegatee(validatorAddress);
var share = repository.GetBond(delegatee, agentAddress).Share;
Expand Down

0 comments on commit 73f9d75

Please sign in to comment.