Skip to content

Commit

Permalink
Merge pull request #2234 from moreal/bugfix/graphql/return-null-state
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal authored Sep 5, 2023
2 parents 7b37a0e + b241849 commit c85325a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NineChronicles.Headless/GraphTypes/StandaloneQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public StandaloneQuery(StandaloneContext standaloneContext, IConfiguration confi

var state = blockChain.GetStates(new[] { address }, blockHash)[0];

if (state is null)
{
return null;
}

return new Codec().Encode(state);
}
);
Expand Down

0 comments on commit c85325a

Please sign in to comment.