Skip to content

Commit

Permalink
fix: fix authz simulation tests for desmos
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Aug 3, 2023
1 parent 3b509c1 commit 4a4c23d
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 4a4c23d

Please sign in to comment.