-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
[optimization] Gas use in removeNFToken
#104
Comments
Actually
is never necessary. |
I already reported about this here: #91 |
It was reported and fixed. I believe @mg6maciej is not using the last version. Please check #91. |
Lets continue the discussion about |
Oh, yeah. I even commented on removal of Better yet, you may apply something like this: OpenZeppelin/openzeppelin-contracts#1031 |
If you are not willing to go in the direction of 0x PR on OZ repo (removing
As you may noticed, two updates are done conditionally, but also |
removeNFToken
removeNFToken
@MoMannn let's test that. |
The decision of what to do here is connected to discussion in #114. So if decision there is to lose inheritance and go to full optimization that would mean losing function and be an answer for this as well. |
Closing in favor of #114. |
These two lines don't need to be executed when
tokenToRemoveIndex == lastTokenIndex
.Next line covers clearing it:
The text was updated successfully, but these errors were encountered: