ReseedField.init()
must be called once because it sets global parameters dependent on input accountPlots
:
Let's calculate how much gas it costs to set all the plots. Every iteration of outer cycle costs 20k + 40k + (20k + 25k) * (n-1)
, where n
is number of plots per account. Let me explain:
20k is SLOAD here:
40k is 2 SLOAD for initializing array with first value here:
(20k + 25k)
is for additional plots per account (45k instead of 60k because of altering array length instead of initializing)
Several L2s have block gasLimit 30M such as Optimism, Blast, Polygon. So in case there are more than 30M / 60k = 500
accounts with plots, migration will revert
Migration cannot be performed on several L2s such as Optimism, Blast, Polygon in case there are more than 500 accounts with plots prior to migration.
Manual Review
Use another way to init plots such that it can be split into multiple transactions.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.