Content pfp
Content
@
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.
2 replies
5 recasts
43 reactions

kk pfp
kk
@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
1 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
2 reactions

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

Malik  pfp
Malik
@mariku
Mapping will be more expensive the best choice is to use an array of
0 reply
0 recast
0 reaction