-
Notifications
You must be signed in to change notification settings - Fork 567
SignatureDrop: using DropSinglePhase
#169
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
Conversation
|
||
event TokensClaimed( | ||
ClaimCondition condition, | ||
uint256 indexed claimConditionIndex, |
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.
probably doesn't need to be indexed.
single phase = index always 0?
|
||
// Get receiver of tokens. | ||
address receiver = _req.to == address(0) ? msg.sender : _req.to; | ||
address receiver = _req.to == address(0) ? _msgSender() : _req.to; |
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.
we should probably inform people that this is vulnerable to signature frontrunning attack
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.
Will add this consideration to the design document.
contracts/contracts/signature-drop/SignatureDrop.sol Lines 96 to 110 in 7f575f5
i think this setup is a little weird and wasteful. basically with Other thought, could we have |
"caller not owner nor approved" | ||
); | ||
_burn(tokenId); | ||
_burn(tokenId, true); |
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.
make a comment here that _burn
internally check for approvals from erc721a
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.
Will add consideration in a code comment + design document.
We were using |
Update: we'll not be upgrading to |
No description provided.