-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Always clearApproval on removeNFToken #50 #51
Conversation
I just noticed that this could have been exploited via NFTokenEnumerable->removeNFToken as well. |
Thanks, @dafky2000. Can you please clarify your last comment? |
If NFTokenEnumerable is used (NFTokenEnumerableMock for example) and NFTokenEnumerable->removeNFToken is executed, the previous approval will not be removed (without this PR) .
|
So this PR should either be accepted OR change the NFTokenEnumerable->removeNFToken to read
|
We had a long discussion about this small change. Though the proposal is valid it does not follow the single responsibility principle which we try to follow. Private and internal methods are desired to have a single responsibility. Methods It's really up to the developer to make sure his/her code is secure. A developer can always override methods and do bad things :). We decided to update the documentation with a |
@dafky2000 here's the PR: #54 |
Fixed #50