Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c38e4b57
Unverified
Commit
c38e4b57
authored
Oct 19, 2021
by
Kelvin Fichter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: minor OVM_ETH regenesis bugs
parent
f9ea95bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
nasty-walls-hammer.md
.changeset/nasty-walls-hammer.md
+6
-0
make-genesis.ts
packages/contracts/src/make-genesis.ts
+2
-10
No files found.
.changeset/nasty-walls-hammer.md
0 → 100644
View file @
c38e4b57
---
'
@eth-optimism/contracts'
:
patch
'
@eth-optimism/regenesis-surgery'
:
patch
---
Minor bugfixes to the regenesis process for OVM_ETH
packages/contracts/src/make-genesis.ts
View file @
c38e4b57
/* External Imports */
/* External Imports */
import
{
promisify
}
from
'
util
'
import
{
promisify
}
from
'
util
'
import
{
exec
}
from
'
child_process
'
import
{
exec
}
from
'
child_process
'
import
{
ethers
}
from
'
ethers
'
import
{
import
{
computeStorageSlots
,
computeStorageSlots
,
getStorageLayout
,
getStorageLayout
,
...
@@ -77,6 +78,7 @@ export const makeL2GenesisFile = async (
...
@@ -77,6 +78,7 @@ export const makeL2GenesisFile = async (
},
},
OVM_ETH
:
{
OVM_ETH
:
{
l2Bridge
:
predeploys
.
L2StandardBridge
,
l2Bridge
:
predeploys
.
L2StandardBridge
,
l1Token
:
ethers
.
constants
.
AddressZero
,
_name
:
'
Ether
'
,
_name
:
'
Ether
'
,
_symbol
:
'
ETH
'
,
_symbol
:
'
ETH
'
,
},
},
...
@@ -96,16 +98,6 @@ export const makeL2GenesisFile = async (
...
@@ -96,16 +98,6 @@ export const makeL2GenesisFile = async (
}
}
const
dump
=
{}
const
dump
=
{}
// Add the precompiles. Only safe for up to 9
for
(
let
i
=
1
;
i
<=
9
;
i
++
)
{
const
addr
=
`0x000000000000000000000000000000000000000
${
i
}
`
if
(
addr
.
length
!==
42
)
{
throw
new
Error
(
`Address length incorrect:
${
addr
.
length
}
`
)
}
dump
[
addr
]
=
{
balance
:
'
01
'
,
}
}
for
(
const
predeployName
of
Object
.
keys
(
predeploys
))
{
for
(
const
predeployName
of
Object
.
keys
(
predeploys
))
{
const
predeployAddress
=
predeploys
[
predeployName
]
const
predeployAddress
=
predeploys
[
predeployName
]
dump
[
predeployAddress
]
=
{
dump
[
predeployAddress
]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment