Skip to content

Commit

Permalink
fix msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Dec 11, 2023
1 parent 1c33131 commit d7bd921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/cronos/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func SimulateUpdateTokenMapping(ak types.AccountKeeper, bk types.BankKeeper, k *
}

oper, ops, err := simulation.GenAndDeliverTxWithRandFees(txCtx)
if simAccount.Address.String() != cronosAdmin && errors.Is(err, errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "msg sender is not authorized")) {
if simAccount.Address.String() != cronosAdmin && errors.Is(err, errorsmod.Wrap(sdkerrors.ErrUnauthorized, "msg sender is not authorized")) {
return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "unauthorized tx should fail"), nil, nil
}
return oper, ops, err
Expand Down

0 comments on commit d7bd921

Please sign in to comment.