From cff1d1323ec36c98516ba92f14d90e14e76e4d5e Mon Sep 17 00:00:00 2001 From: Kaloyan Gangov <6922910+gangov@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:12:59 +0300 Subject: [PATCH] renames a var --- contracts/auctions/src/contract.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/auctions/src/contract.rs b/contracts/auctions/src/contract.rs index e3164077..71612fbb 100644 --- a/contracts/auctions/src/contract.rs +++ b/contracts/auctions/src/contract.rs @@ -119,7 +119,7 @@ impl MarketplaceContract { let token_client = token::Client::new(&env, &auction.currency); match auction.highest_bid { - Some(old_highest_bid) if bid_amount > old_highest_bid => { + Some(current_highest_bid) if bid_amount > current_highest_bid => { // refund the previous highest bidder let old_bid_info = get_highest_bid(&env, auction_id)?;