From 4c906d5a53a255c551d6ed981a548cffe47ae9f0 Mon Sep 17 00:00:00 2001 From: vishal-kanna <71565171+vishal-kanna@users.noreply.github.com> Date: Tue, 4 Apr 2023 14:44:57 +0530 Subject: [PATCH] fix : removed the unnecessary usage of ErrInvalidMsg (#1311) * feat:added a new error type * feat:added a new error type * fix: removed unnecessary usage of error type ErrInvalidMsg --------- Co-authored-by: Vishal --- x/wasm/types/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }