So essentially I’m using a contract I wrote last year (my first and only contract) and I’m doing my second one for a collection minting. I base everything on openzeppellin libraries but I saw a lot of collection are using ERC721A that is custom from Azuki. I was wondering what does it mean to use it instead of the regular 721 and if it requires some changes or I can just replace
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
and
contract TokenName is ERC721, ERC721URIStorage, DefaultOperatorFilterer, Ownable {
with correct ones
Nov 14, 2022, 10:19 AM
I can’t see any ERC721A for ERC721URIStorage
the mint are sequential 0,1,2,3,4 5…… and with max 20 per transaction (and per wallet)
what about ERC721URIStorage ?
(sorry if my questions are dumb, kinda basic knowledges on sol)
So essentially I can grab https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol and replace as dependency on top of the code and try to compile, if I get error I have to investigate
Nov 14, 2022, 10:26 AM
I didn't understanmd
Nov 14, 2022, 10:27 AM
I mean, I have to use that github file that is the ERC721A instead of the import "@openzeppelin/contracts/token/ERC721/ERC721.sol”; dependency and try to compile and see if I get some errors
Nov 14, 2022, 10:28 AM
I don't know your code but yes
just import erc721a
just import erc721a
Nov 14, 2022, 10:29 AM
https://controlc.com/664c5423 👀
slow but everything is going through
Nov 14, 2022, 11:11 AM