Skip to content

Commit

Permalink
fix acc address validation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Feb 9, 2024
1 parent 46254aa commit bd1bb8f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/marketplace/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ func (msg MsgListNFT) Route() string { return MsgRoute }
func (msg MsgListNFT) Type() string { return TypeMsgListNFT }

func (msg MsgListNFT) ValidateBasic() error {
owner, err := sdk.AccAddressFromBech32(msg.Owner)
if err != nil {
return err
}
return ValidateListing(
NewListing(
msg.Id,
msg.NftId,
msg.DenomId,
msg.Price,
sdk.AccAddress(msg.Owner),
owner,
msg.SplitShares,
),
)
Expand Down

0 comments on commit bd1bb8f

Please sign in to comment.