Skip to content

Commit

Permalink
fix duraiton validation for auctions
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Sep 14, 2022
1 parent 6649d74 commit 41065b9
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 @@ -44,7 +44,7 @@ func ValidatePrice(price sdk.Coin) error {
}

func ValidateDuration(t interface{}) error {
duration, ok := t.(time.Duration)
duration, ok := t.(*time.Duration)
if !ok {
return sdkerrors.Wrapf(ErrInvalidDuration, "invalid value for duration: %T", t)
}
Expand Down

0 comments on commit 41065b9

Please sign in to comment.