Skip to content

Commit

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

var requiredStakingAmount = stakeRegularRewardSheet[requiredStakingLevel].RequiredGold;

var avatarState = states.GetAvatarState(AvatarAddress);
var avatarState = states.GetAvatarState(AvatarAddress, false, false, false);
if (avatarState is null || !avatarState.agentAddress.Equals(context.Signer))
{
var addressesHex = GetSignerAndOtherAddressesHex(context, AvatarAddress);
Expand Down

0 comments on commit 202cdd7

Please sign in to comment.