Skip to content

Commit

Permalink
fix: Remove agent identification code from state query
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jan 3, 2025
1 parent 50523ed commit d8d5a21
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions NineChronicles.Headless/GraphTypes/StateQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,6 @@ public StateQuery()
resolve: context =>
{
var agentAddress = new AgentAddress(context.GetArgument<Address>("agentAddress"));
if (!(context.Source.WorldState.GetAgentState(agentAddress) is { } agentState))
{
return null;
}

var repository = new GuildRepository(new World(context.Source.WorldState), new HallowActionContext { });
if (repository.GetJoinedGuild(agentAddress) is { } guildAddress)
{
Expand Down

0 comments on commit d8d5a21

Please sign in to comment.