Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jan 27, 2025
1 parent 9e5d729 commit d9d6cb3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions x/migration/types/message_upload_morse_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ import (

var _ sdk.Msg = &MsgUploadMorseState{}

func NewMsgUploadMorseState(authority string, state string) *MsgUploadMorseState {
return &MsgUploadMorseState{
func NewMsgUploadMorseState(authority string, state []byte) *MsgUploadMorseState {
return &MsgUploadMorseState{
Authority: authority,
State: state,
State: state,
}
}

func (msg *MsgUploadMorseState) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Authority)
if err != nil {
return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err)
}
return nil
_, err := sdk.AccAddressFromBech32(msg.Authority)
if err != nil {
return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid authority address (%s)", err)
}
return nil
}

0 comments on commit d9d6cb3

Please sign in to comment.