From 4a4c23d3cdf14b1930967a3c523b2702179baf44 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 29 Mar 2023 00:20:10 +0800 Subject: [PATCH] fix: fix authz simulation tests for desmos --- x/authz/simulation/operations.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/authz/simulation/operations.go b/x/authz/simulation/operations.go index 33fe08dea025..37002281e706 100644 --- a/x/authz/simulation/operations.go +++ b/x/authz/simulation/operations.go @@ -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)