Skip to content

Commit

Permalink
optimize SweepAdventureBoss action
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-doobu committed Oct 24, 2024
1 parent 202cdd7 commit 5e6c9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib9c/Action/AdventureBoss/SweepAdventureBoss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override IWorld Execute(IActionContext context)
);
}

var avatarState = states.GetAvatarState(AvatarAddress);
var avatarState = states.GetAvatarState(AvatarAddress, true, false, false);
if (avatarState is null || !avatarState.agentAddress.Equals(context.Signer))
{
throw new FailedLoadStateException($"{addressesHex}Aborted as the avatar state of the signer was failed to load.");
Expand Down

0 comments on commit 5e6c9ad

Please sign in to comment.