Skip to content

Commit

Permalink
fix acc address validation issue (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 authored Feb 9, 2024
1 parent 46254aa commit 71a9f17
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 71a9f17

Please sign in to comment.