Skip to content

Commit

Permalink
fix : removed the unnecessary usage of ErrInvalidMsg (#1311)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
vishal-kanna and Vishal authored Apr 4, 2023
1 parent b33c38c commit 4c906d5
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 @@ -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
}
Expand Down

0 comments on commit 4c906d5

Please sign in to comment.