refactor: rename ValidateBasic to Validate

This commit is contained in:
Prad Nukala 2024-10-30 13:44:50 -04:00
parent f70fa75e86
commit 5b85868993

View File

@ -41,11 +41,14 @@ func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress {
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 {
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
return errors.Wrap(err, "invalid authority address")
}
return msg.Params.Validate()
}
// ╭───────────────────────────────────────────────────────────╮
// │ Registration Components │
// ╰───────────────────────────────────────────────────────────╯