Skip to content

Commit

Permalink
fix error format message
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Sep 13, 2022
1 parent 787a273 commit e623cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/marketplace/types/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ValidateListing(listing Listing) error {
// ValidatePrice
func ValidatePrice(price sdk.Coin) error {
if price.IsZero() || price.IsNegative() {
return sdkerrors.Wrapf(ErrInvalidPrice, "invalid price %d, only accepts positive amount", price)
return sdkerrors.Wrapf(ErrInvalidPrice, "invalid price %s, only accepts positive amount", price.String())
}
/*
if !StringInSlice(price.Denom, allowedDenoms) {
Expand Down

0 comments on commit e623cf0

Please sign in to comment.