mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
refactor: rename ValidateBasic to Validate
This commit is contained in:
@@ -41,11 +41,14 @@ func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress {
|
|||||||
return []sdk.AccAddress{addr}
|
return []sdk.AccAddress{addr}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidateBasic does a sanity check on the provided data.
|
// Validate does a sanity check on the provided data.
|
||||||
func (msg *MsgUpdateParams) Validate() error {
|
func (msg *MsgUpdateParams) Validate() error {
|
||||||
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
|
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
|
||||||
return errors.Wrap(err, "invalid authority address")
|
return errors.Wrap(err, "invalid authority address")
|
||||||
}
|
}
|
||||||
|
|
||||||
return msg.Params.Validate()
|
return msg.Params.Validate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ╭───────────────────────────────────────────────────────────╮
|
||||||
|
// │ Registration Components │
|
||||||
|
// ╰───────────────────────────────────────────────────────────╯
|
||||||
|
|||||||
Reference in New Issue
Block a user