From fe46df778b6a4394349a6506eb92f0a82f967ffb Mon Sep 17 00:00:00 2001 From: Tranquil-Flow <66773372+Tranquil-Flow@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:39:28 +0200 Subject: [PATCH] reorder logic in endAuction for swarm hosting --- packages/hardhat/contracts/CarnationAuction.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hardhat/contracts/CarnationAuction.sol b/packages/hardhat/contracts/CarnationAuction.sol index dbe3a86..592e967 100644 --- a/packages/hardhat/contracts/CarnationAuction.sol +++ b/packages/hardhat/contracts/CarnationAuction.sol @@ -132,10 +132,6 @@ contract CarnationAuction is ReentrancyGuard { } } - uint swarmHostingCost; - string memory swarmLink; - // Implement Swarm hosting logic here - // Check a bid occured if (highestBidder != address(0)) { // If so, mint NFT to the highest bidder @@ -148,6 +144,10 @@ contract CarnationAuction is ReentrancyGuard { // Set the winnning bid to 0 bids[_audioSlotID][highestBidder].bidAmount = 0; + uint swarmHostingCost; + string memory swarmLink; + // Implement Swarm hosting logic here + // Start a new auction startAuction();