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
7b9dca65
Unverified
Commit
7b9dca65
authored
Dec 19, 2022
by
mergify[bot]
Committed by
GitHub
Dec 19, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4525 from ethereum-optimism/fix/syscfg-deploy-check
contracts-bedrock: more strict deploy checks
parents
e7045929
c6253cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
020-SystemDictatorSteps.ts
packages/contracts-bedrock/deploy/020-SystemDictatorSteps.ts
+40
-0
No files found.
packages/contracts-bedrock/deploy/020-SystemDictatorSteps.ts
View file @
7b9dca65
...
@@ -31,6 +31,7 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -31,6 +31,7 @@ const deployFn: DeployFunction = async (hre) => {
L1ERC721BridgeProxy
,
L1ERC721BridgeProxy
,
L1ERC721BridgeProxyWithSigner
,
L1ERC721BridgeProxyWithSigner
,
L1ERC721Bridge
,
L1ERC721Bridge
,
SystemConfigProxy
,
]
=
await
getContractsFromArtifacts
(
hre
,
[
]
=
await
getContractsFromArtifacts
(
hre
,
[
{
{
name
:
'
SystemDictatorProxy
'
,
name
:
'
SystemDictatorProxy
'
,
...
@@ -89,6 +90,11 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -89,6 +90,11 @@ const deployFn: DeployFunction = async (hre) => {
iface
:
'
L1ERC721Bridge
'
,
iface
:
'
L1ERC721Bridge
'
,
signerOrProvider
:
deployer
,
signerOrProvider
:
deployer
,
},
},
{
name
:
'
SystemConfigProxy
'
,
iface
:
'
SystemConfig
'
,
signerOrProvider
:
deployer
,
},
])
])
// If we have the key for the controller then we don't need to wait for external txns.
// If we have the key for the controller then we don't need to wait for external txns.
...
@@ -498,6 +504,40 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -498,6 +504,40 @@ const deployFn: DeployFunction = async (hre) => {
'
messenger
'
,
'
messenger
'
,
L1CrossDomainMessenger
.
address
L1CrossDomainMessenger
.
address
)
)
// Check the SystemConfig was initialized properly.
await
assertContractVariable
(
SystemConfigProxy
,
'
owner
'
,
hre
.
deployConfig
.
finalSystemOwner
)
await
assertContractVariable
(
SystemConfigProxy
,
'
overhead
'
,
hre
.
deployConfig
.
gasPriceOracleOverhead
)
await
assertContractVariable
(
SystemConfigProxy
,
'
scalar
'
,
hre
.
deployConfig
.
gasPriceOracleScalar
)
await
assertContractVariable
(
SystemConfigProxy
,
'
batcherHash
'
,
ethers
.
utils
.
hexZeroPad
(
hre
.
deployConfig
.
batchSenderAddress
.
toLowerCase
(),
32
)
)
await
assertContractVariable
(
SystemConfigProxy
,
'
gasLimit
'
,
hre
.
deployConfig
.
l2GenesisBlockGasLimit
)
},
},
})
})
...
...
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