-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(WIP) add extendable erc721r contract #16
base: main
Are you sure you want to change the base?
Conversation
For owner mints I would work on what we already have merged in which fixes issues around that. |
Note, I'm not sure the actual issue is owner mint. Because even if the owner can't mint, they can still buy 1 off the market and refund indefinitely. So I'm not sure we need it at all. We just need the fixes that were put in here: The core being: mapping(uint256 => bool) public hasRefunded; // users can search if the NFT has been refunded
mapping(uint256 => bool) public isOwnerMint; // if the NFT was freely minted by owner |
Could the |
I have a nice solution for all that I plan to implement to push tomorrow to fix this issue |
yeah I see what you're saying. It may be removed soon |
Yes, we will remove it |
a solution was already merged in for this btw. there was discussion around some different options too. may be worth adding comments to that discussion on what you're planning as a few options were already put out |
contracts/ERC721R.sol
Outdated
modifier notContract() { | ||
require(!Address.isContract(msg.sender), "No contract calls"); | ||
_; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
Yes the mapping are included to the implementation. |
So I pushed a version like that a few days ago: The reason we didn't use it is discussed there. It increases mint price. The other versions increase ownermint price and refund which is probably better |
Created a simple extendable version of ERC721R
WIP: need to handle owner mints differently