Skip to content

Commit

Permalink
changes the item_balance check
Browse files Browse the repository at this point in the history
  • Loading branch information
gangov committed Sep 13, 2024
1 parent 693c8a3 commit 658955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/auctions/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl MarketplaceContract {
);

// we need at least one item to start an auction
if item_balance < 1 {
if item_balance < item_info.amount {
log!(
&env,
"Auction: Create Auction: Not enough balance of the item to sell"
Expand Down

0 comments on commit 658955b

Please sign in to comment.