Closed lawweiliang closed 2 years ago
By default, ERC721A already have _numberMinted(msg.sender) _totalMinted()
Replace userMintedAmount[msg.sender] -> _numberMinted(msg.sender) amountMinted -> _totalMinted()
Code was getting cleaner and save cost for both deployment and minting. 😄
Test file was updated as well, slot 9 (amountMinted) was change to slot 0 (_currentIndex).
Awesome update 🔥
ERC721RExample
By default, ERC721A already have _numberMinted(msg.sender) _totalMinted()
Replace userMintedAmount[msg.sender] -> _numberMinted(msg.sender) amountMinted -> _totalMinted()
Code was getting cleaner and save cost for both deployment and minting. 😄
Test File
Test file was updated as well, slot 9 (amountMinted) was change to slot 0 (_currentIndex).
Test Result (32 Test Passing)