Skip to content

Commit

Permalink
fix: fix authz simulation tests for desmos
Browse files Browse the repository at this point in the history
(cherry picked from commit 4a4c23d)
  • Loading branch information
dadamu authored and RiccardoM committed Nov 8, 2023
1 parent 2e9e5d6 commit c98f99a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/authz/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ func SimulateMsgRevoke(cdc *codec.ProtoCodec, ak authz.AccountKeeper, bk authz.B

granterAcc, ok := simtypes.FindAccount(accs, granterAddr)
if !ok {
return simtypes.NoOpMsg(authz.ModuleName, TypeMsgRevoke, "account not found"), nil, sdkerrors.ErrNotFound.Wrapf("account not found")
// Skip because account not found inside simulation accounts (granter can be subspace treasury account)
return simtypes.NoOpMsg(authz.ModuleName, TypeMsgRevoke, "account not found"), nil, nil
}

spendableCoins := bk.SpendableCoins(ctx, granterAddr)
Expand Down

0 comments on commit c98f99a

Please sign in to comment.