errortypes.Wrap

This commit is contained in:
0xmuralik 2023-03-14 13:07:30 +05:30
parent 7d4ff9950d
commit d3011819c6

View File

@ -401,7 +401,7 @@ func (m MsgUpdateParams) GetSigners() []sdk.AccAddress {
// ValidateBasic does a sanity check of the provided data
func (m *MsgUpdateParams) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
return errortypes.Wrap(err, "invalid authority address")
return errorsmod.Wrap(err, "invalid authority address")
}
return m.Params.Validate()