Commit df4d4eea authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

genesis: Reduce number of predeploys (#2889)

We were creating 65k predeploys, which made a huge genesis file. This PR reduces that to 2048.
parent a9028f11
...@@ -144,7 +144,7 @@ task('genesis-l2', 'create a genesis config') ...@@ -144,7 +144,7 @@ task('genesis-l2', 'create a genesis config')
// Set a proxy at each predeploy address // Set a proxy at each predeploy address
const proxy = await hre.artifacts.readArtifact('Proxy') const proxy = await hre.artifacts.readArtifact('Proxy')
for (let i = 0; i <= 0xffff; i++) { for (let i = 0; i <= 2048; i++) {
const num = ethers.utils.hexZeroPad('0x' + i.toString(16), 2) const num = ethers.utils.hexZeroPad('0x' + i.toString(16), 2)
const addr = ethers.utils.getAddress( const addr = ethers.utils.getAddress(
ethers.utils.hexConcat([prefix, num]) ethers.utils.hexConcat([prefix, num])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment