Skip to content

Commit

Permalink
reorder logic in endAuction for swarm hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranquil-Flow committed Jul 17, 2024
1 parent cc4037b commit fe46df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/hardhat/contracts/CarnationAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();

Expand Down

0 comments on commit fe46df7

Please sign in to comment.