forked from cerc-io/laconicd-deprecated
errortypes.Wrap
This commit is contained in:
parent
7d4ff9950d
commit
d3011819c6
@ -401,7 +401,7 @@ func (m MsgUpdateParams) GetSigners() []sdk.AccAddress {
|
|||||||
// ValidateBasic does a sanity check of the provided data
|
// ValidateBasic does a sanity check of the provided data
|
||||||
func (m *MsgUpdateParams) ValidateBasic() error {
|
func (m *MsgUpdateParams) ValidateBasic() error {
|
||||||
if _, err := sdk.AccAddressFromBech32(m.Authority); err != nil {
|
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()
|
return m.Params.Validate()
|
||||||
|
Loading…
Reference in New Issue
Block a user