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 Sep 27, 2023
1 parent 467d2f7 commit 2312782
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 @@ -187,7 +187,8 @@ func SimulateMsgRevoke(

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 2312782

Please sign in to comment.