Skip to content

Commit

Permalink
Merge pull request #11 from Fantom-foundation/fix-delete-auctions
Browse files Browse the repository at this point in the history
Fix delete auction
  • Loading branch information
quan8 authored Sep 28, 2021
2 parents 5792c5f + e42950b commit d2d8dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/FantomAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,6 @@ contract FantomAuction is OwnableUpgradeable, ReentrancyGuardUpgradeable {
IFantomBundleMarketplace(addressRegistry.bundleMarketplace())
.validateItemSold(_nftAddress, _tokenId, uint256(1));

// Remove auction
delete auctions[_nftAddress][_tokenId];

emit AuctionResulted(
_msgSender(),
_nftAddress,
Expand All @@ -562,6 +559,9 @@ contract FantomAuction is OwnableUpgradeable, ReentrancyGuardUpgradeable {
),
winningBid
);

// Remove auction
delete auctions[_nftAddress][_tokenId];
}

/**
Expand Down

0 comments on commit d2d8dc7

Please sign in to comment.