Skip to content

ERC-721 Token + English Auction (Foundry)#8

Open
levoski1 wants to merge 2 commits into
BlockheaderWeb3-Community:mainfrom
levoski1:levi-IERC721
Open

ERC-721 Token + English Auction (Foundry)#8
levoski1 wants to merge 2 commits into
BlockheaderWeb3-Community:mainfrom
levoski1:levi-IERC721

Conversation

@levoski1

Copy link
Copy Markdown

ERC-721 Token + English Auction (Foundry)

@Mac-5

@Mac-5
Mac-5 self-requested a review July 16, 2026 09:49

constructor(IERC721 _nft, uint256 _tokenId, uint256 _reservePrice, uint256 _duration) {
seller = msg.sender;
nft = _nft;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you are to expect the address of the nft refactor to use the address and typecast with your import interface

constructor(address _nft,) {
  nft = IERC721(_nft);
  }

endTime = block.timestamp + _duration;
}

modifier onlySeller() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this modifier

_;
}

function bid() external payable auctionActive {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow CEI for this function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants