Skip to content

Commit

Permalink
updated bid function
Browse files Browse the repository at this point in the history
  • Loading branch information
ABFX15 committed Nov 27, 2024
1 parent 5d085a5 commit d141ed7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AuctionContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contract AuctionContract is Ownable, ReentrancyGuard, IERC721Receiver {
// Modifier to check if the auction is active
modifier auctionActive(uint256 auctionId) {
NFTAuction storage auction = nftAuctions[auctionId];
if (block.timestamp > auction.endTime) {
if (block.timestamp > auction.endTime) {
revert NFTAuction__AuctionEnded();
}
if (msg.sender == auction.seller) {
Expand Down Expand Up @@ -234,7 +234,6 @@ contract AuctionContract is Ownable, ReentrancyGuard, IERC721Receiver {
if (!success) {
revert NFTAuction__TransferFailed();
}

}

fallback() external payable {}
Expand Down

0 comments on commit d141ed7

Please sign in to comment.