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
4df829b1
Unverified
Commit
4df829b1
authored
Nov 05, 2021
by
kf
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: various minor issues with surgery script
parent
d219683d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
data.ts
packages/regenesis-surgery/scripts/data.ts
+5
-4
solc.ts
packages/regenesis-surgery/scripts/solc.ts
+1
-1
No files found.
packages/regenesis-surgery/scripts/data.ts
View file @
4df829b1
...
...
@@ -89,7 +89,7 @@ const getChainId = async (
provider
:
ethers
.
providers
.
JsonRpcProvider
):
Promise
<
number
>
=>
{
const
response
=
await
provider
.
send
(
'
eth_chainId
'
,
[])
return
ethers
.
BigNumber
.
from
(
response
.
result
).
toNumber
()
return
ethers
.
BigNumber
.
from
(
response
).
toNumber
()
}
export
const
loadSurgeryData
=
async
(
...
...
@@ -142,9 +142,10 @@ export const loadSurgeryData = async (
console
.
log
(
'
Loading genesis file...
'
)
const
genesis
:
GenesisFile
=
await
readGenesisFile
(
configs
.
genesisFilePath
)
if
(
genesis
.
config
.
chainId
!==
l2ChainId
)
{
throw
new
Error
(
`Genesis File at
${
configs
.
genesisFilePath
}
has chain id mismatch with remote L2 node`
+
` got
${
genesis
.
config
.
chainId
}
locally and
${
l2ChainId
}
remote`
// Don't throw here because we might need to do a staging environment with a different chain ID
console
.
log
(
`WARNING: Genesis File at
${
configs
.
genesisFilePath
}
has chain id mismatch with remote L2 node`
+
` got
${
genesis
.
config
.
chainId
}
locally and
${
l2ChainId
}
remotely`
)
}
const
genesisDump
:
StateDump
=
[]
...
...
packages/regenesis-surgery/scripts/solc.ts
View file @
4df829b1
...
...
@@ -4,7 +4,7 @@ import path from 'path'
import
fs
from
'
fs
'
import
{
ethers
}
from
'
ethers
'
import
{
clone
}
from
'
@eth-optimism/core-utils
'
import
{
setupMethods
}
from
'
solc/wrapper
'
import
setupMethods
from
'
solc/wrapper
'
import
{
COMPILER_VERSIONS_TO_SOLC
,
EMSCRIPTEN_BUILD_LIST
,
...
...
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