-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
mild approve()/Approval() clarifications #1151
Conversation
Specify that Approval should be emitted in a "set of reaffirmation" and not just on a "change or reaffirmation"
cc @fulldecent for author approval |
@shrugs For FYI I got this convention from https://github.com/ethereum/wiki/wiki/Ethereum-Natural-Specification-Format |
that natspec spec doesn't really specify whether or not periods are required or not, including giving multiple contradictory examples and unspecified multiline specifications
Also in this spec document are
and
along with inconsistent periods at the end of
Is the rule we want to follow "no trailing periods except on |
Shouldn't it say "set, changed or reaffirmed"? |
Yes, that makes sense. Please use "set, changed or reaffirmed" Also welcome to make any period fixes too. Thank you. |
Looking at it again and at 0xcert and openzeppelin implementations, the
"Changed" can also be understood as a set of {set, unset, changed}, so I think it might be better to leave it as "changed or reaffirmed" instead of listing all cases or maybe just write something along the lines of "In all cases Approval event is emitted". |
"Changed or reaffirmed" is good |
In ERC721, specify that
Approval
should be emitted in a "set or reaffirmation" and not just on a "change or reaffirmation".