diff --git a/x/wasm/types/tx.go b/x/wasm/types/tx.go index 30c9c41ac7..023cfdbc72 100644 --- a/x/wasm/types/tx.go +++ b/x/wasm/types/tx.go @@ -262,7 +262,7 @@ func (msg MsgUpdateAdmin) ValidateBasic() error { return errorsmod.Wrap(err, "new admin") } if strings.EqualFold(msg.Sender, msg.NewAdmin) { - return errorsmod.Wrap(ErrInvalidMsg, "new admin is the same as the old") + return errorsmod.Wrap(ErrInvalid, "new admin is the same as the old") } return nil }