Skip to content

Commit

Permalink
Merge pull request #11 from OmniFlix/store-prefix-fix
Browse files Browse the repository at this point in the history
fix: fix store prefix issue with has bid function
  • Loading branch information
harish551 authored Aug 25, 2022
2 parents 71be662 + 1765ea1 commit f7f85ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/marketplace/keeper/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ func (k Keeper) GetBidsByBidder(ctx sdk.Context, bidder sdk.AccAddress) (bids []
}

func (k Keeper) HasBid(ctx sdk.Context, id uint64) bool {
store := ctx.KVStore(k.storeKey)
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.PrefixBidByAuctionId)
return store.Has(types.KeyBidPrefix(id))
}

0 comments on commit f7f85ab

Please sign in to comment.