-
Notifications
You must be signed in to change notification settings - Fork 396
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
What about using ERC721A? #24
Comments
Hi @oririechman, thank for your feedback.
May I ask you to give me further information about this statement? If you could point the main differences you see between the two contracts that would help me answering. Thank you very much! |
My main concern is gas efficiency. From the documentation of Azuki they mention 3 optimizations, I think 2 of them are relevant:
Again, I just want to make sure that yours contract is as efficient as 721A Thanks a lot |
Thank you @oririechman, now I get your point. I made some rough benchmarks by extending the So here you can see that our contract is already really efficient compared to an Unfortunately I can't give any ETA since there is a lot of stuff going on at the moment. I hope this helps. |
It would be a great enhancement to the contract since cost is the main issue with batch minting. It would entice users to mint more tokens as it will be nearly the same fee as minting 1 token. Great explanation Marco and thanks OP for bringing this up. |
Yes I totally agree, anyway I just want to point out the the current implementation uses |
@oririechman, @gitrevo I opened a new PR (#29) where I'm testing this migration. I would really appreciate some help testing and reviewing the code (if possible). Thank you very much. |
Hi again Marco, I've deployed it on rinkeby for our reference: https://rinkeby.etherscan.io/address/0x62d21f60442454a90c119fdc4bb9969fb6b49736 It works like a charm on the minting-dapp 👍 However, I do notice query issue with token ID '0' and '1'. When I tried to query (read contract) token 0 which is the first ID, it produce error message while you can view token holder page which clearly shows token 0 has an owner. Another is minting via contract (write contract - owner address - mint), it will show that the transaction will likely fail and the gas is extremely high. However, mintForAddress via write contract is working perfectly. I received another warning while updating whitelist.json stating that the maximum optimize list should be 5000 when I had pasted a 6000 lists. |
Hi @gitrevo, thank you very much for your time testing this and providing with such amazing info. I think I got the problem: the Azuki contract is using token IDs starting from I'm gonna work on a fix and I also ask if you can bring any further information directly to the PR (#29) so we can move the discussion there. Thank you |
Sure Marco, please merge it there and I shall share new findings (if any) there as well. Have a great weekend ahead, cheers! |
Just got to it now and I see that you have progressed a lot!! |
Is the new commit using 721A? I'm watching this thread closely! Nowhere near as skilled as all of you, but I will help test the 721A on Rinkeby. |
Hi @oririechman and @joven1555, In the meanwhile I'm gonna close this issue so we can move the discussion to the PR. Thank you. |
First I want to say thank you!
You are doing amazing job helping the community.
As I know, Azuki as published a better implementation of IERC721 with significant gas savings for minting multiple NFTs in a single transaction.
Why you are not using it?
How much does it cost multiple minting in this contract?
The text was updated successfully, but these errors were encountered: