-
Notifications
You must be signed in to change notification settings - Fork 841
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
Add ERC721ABatchBurnable
extension
#444
Add ERC721ABatchBurnable
extension
#444
Conversation
O.O Sort. |
Oh, possible to add in an Similar to In case someone has a use case for doing batch transfers internally. |
Absolutely, on it. Just to confirm, it would result in the following functions:
|
@jjranalli Yes! |
@Vectorized approvalCheck flag added. Also fixing some issues with the logic. Will push a new version soon |
e4ba55c
to
64a88c4
Compare
f90d892
to
96d7fb3
Compare
The commit above is an attempt to ensure correctness of |
I think the sort can use insertion sort. Then we can add a comment on passing in sorted tokenIds for best performance. Thanks so much for the PR. I’m wondering if we can also do batch burning. |
batchBurn
and batchTransferFrom
+ extensionsbatchBurn
Hi @Vectorized Are there any updates on |
This PR introduces the
ERC721ABatchBurnable
extension, leveraging the_batchBurn
function introduced here and then refactored in #450.Assumptions
Some assumptions had to be made:
tokenIds
param, instead ofstartTokenId
+quantity
. This was done to:tokenIds
argument assumes ordered idsNotes
_batchBurn
ERC721BatchBurnable