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>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user