Content pfp
Content
@
https://opensea.io/collection/evm-6
0 reply
0 recast
2 reactions

phil pfp
phil
@phil
Does anyone have experience with testing very high-volume minting for an ERC-721 contract? For example, 10M+ mints? I have a basic test in my local environment, but it's throwing an EVM Revert error before I reach the theoretical max. Wondering if there's a better way to simulate this many mints.
4 replies
1 recast
30 reactions

Ahahahahahahaha pfp
Ahahahahahahaha
@king
you're limited by gas per block, check the gas usage on 1 mint and you can calculate the max.
1 reply
0 recast
0 reaction

phil pfp
phil
@phil
i already have checks in place for the block gas limit what i want to understand is how the gas usage for write txns change over time as the internal data structures grow in size eg if a function needs to perform a lookup from an array, everything might seem fine for the first 1M mints, but blow up at higher numbers
2 replies
0 recast
0 reaction

Kames pfp
Kames
@kames
You would almost never want to iterate through an array, even a small amount of data in a smart contract, especially with millions. What are you trying to achieve? A binary search might be useful here depending on what you're doing.
1 reply
0 recast
0 reaction

Ahahahahahahaha pfp
Ahahahahahahaha
@king
you have an odd process there, assuming the use of mapping instead of an actual array is not possible.
0 reply
0 recast
0 reaction