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
41902810
Commit
41902810
authored
Feb 17, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: fix deployment
parent
de485399
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
20 deletions
+6
-20
010-L1CrossDomainMessengerImpl.ts
...ontracts-bedrock/deploy/010-L1CrossDomainMessengerImpl.ts
+0
-6
021-SystemDictatorSteps-2.ts
...ges/contracts-bedrock/deploy/021-SystemDictatorSteps-2.ts
+6
-14
No files found.
packages/contracts-bedrock/deploy/010-L1CrossDomainMessengerImpl.ts
View file @
41902810
import
{
ethers
}
from
'
ethers
'
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
{
import
{
...
@@ -23,11 +22,6 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -23,11 +22,6 @@ const deployFn: DeployFunction = async (hre) => {
'
PORTAL
'
,
'
PORTAL
'
,
OptimismPortalProxy
.
address
OptimismPortalProxy
.
address
)
)
await
assertContractVariable
(
contract
,
'
owner
'
,
ethers
.
constants
.
AddressZero
)
},
},
})
})
}
}
...
...
packages/contracts-bedrock/deploy/021-SystemDictatorSteps-2.ts
View file @
41902810
...
@@ -116,7 +116,7 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -116,7 +116,7 @@ const deployFn: DeployFunction = async (hre) => {
for
(
const
dead
of
deads
)
{
for
(
const
dead
of
deads
)
{
assert
(
assert
(
(
await
AddressManager
.
getAddress
(
dead
))
===
(
await
AddressManager
.
getAddress
(
dead
))
===
ethers
.
constants
.
AddressZero
ethers
.
constants
.
AddressZero
)
)
}
}
},
},
...
@@ -258,11 +258,6 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -258,11 +258,6 @@ const deployFn: DeployFunction = async (hre) => {
}
catch
(
err
)
{
}
catch
(
err
)
{
// Expected.
// Expected.
}
}
await
assertContractVariable
(
L1CrossDomainMessenger
,
'
owner
'
,
SystemDictator
.
address
)
// Check L1StandardBridge was initialized properly.
// Check L1StandardBridge was initialized properly.
await
assertContractVariable
(
await
assertContractVariable
(
...
@@ -318,14 +313,16 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -318,14 +313,16 @@ const deployFn: DeployFunction = async (hre) => {
30000
,
30000
,
1000
1000
)
)
await
assertContractVariable
(
OptimismPortal
,
'
paused
'
,
false
)
}
}
// At the end we finalize the upgrade.
// At the end we finalize the upgrade.
if
(
await
isStep
(
SystemDictator
,
7
))
{
if
(
await
isStep
(
SystemDictator
,
6
))
{
console
.
log
(
`
console
.
log
(
`
You must now finalize the upgrade by calling finalize() on the SystemDictator. This will
You must now finalize the upgrade by calling finalize() on the SystemDictator. This will
transfer ownership of the ProxyAdmin
and the L1CrossDomainMessenger to the final system owner
transfer ownership of the ProxyAdmin
to the final system owner as specified in the deployment
as specified in the deployment
configuration.
configuration.
`
)
`
)
if
(
isLiveDeployer
)
{
if
(
isLiveDeployer
)
{
...
@@ -347,11 +344,6 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -347,11 +344,6 @@ const deployFn: DeployFunction = async (hre) => {
1000
1000
)
)
await
assertContractVariable
(
L1CrossDomainMessenger
,
'
owner
'
,
hre
.
deployConfig
.
finalSystemOwner
)
await
assertContractVariable
(
await
assertContractVariable
(
ProxyAdmin
,
ProxyAdmin
,
'
owner
'
,
'
owner
'
,
...
...
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