Skip to content

Commit

Permalink
fix : removed the unnecessary usage of ErrInvalidMsg (backport #1311) (
Browse files Browse the repository at this point in the history
…#1317)

* 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 <kannavish329@gamil.com>
(cherry picked from commit 4c906d5)

# Conflicts:
#	x/wasm/types/tx.go

* fix conflicts

---------

Co-authored-by: vishal-kanna <71565171+vishal-kanna@users.noreply.github.com>
Co-authored-by: Pino' Surace <pino.surace@live.it>
  • Loading branch information
3 people authored Apr 4, 2023
1 parent d48bb69 commit fa84037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/wasm/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (msg MsgUpdateAdmin) ValidateBasic() error {
return sdkerrors.Wrap(err, "new admin")
}
if strings.EqualFold(msg.Sender, msg.NewAdmin) {
return sdkerrors.Wrap(ErrInvalidMsg, "new admin is the same as the old")
return sdkerrors.Wrap(ErrInvalid, "new admin is the same as the old")
}
return nil
}
Expand Down

0 comments on commit fa84037

Please sign in to comment.