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
d8bd651a
Commit
d8bd651a
authored
Apr 03, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: update to use same deploy config
parent
5cf646ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
106-SequencerFeeVaultImpl.ts
...ges/contracts-bedrock/deploy/106-SequencerFeeVaultImpl.ts
+4
-1
107-BaseFeeVaultImpl.ts
packages/contracts-bedrock/deploy/107-BaseFeeVaultImpl.ts
+4
-1
108-L1FeeVaultImpl.ts
packages/contracts-bedrock/deploy/108-L1FeeVaultImpl.ts
+4
-1
No files found.
packages/contracts-bedrock/deploy/106-SequencerFeeVaultImpl.ts
View file @
d8bd651a
...
@@ -6,7 +6,10 @@ import { ethers } from 'ethers'
...
@@ -6,7 +6,10 @@ import { ethers } from 'ethers'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
sequencerFeeVaultRecipient
=
hre
.
deployConfig
.
sequencerFeeVaultRecipient
const
l1
=
hre
.
network
.
companionNetworks
[
'
l1
'
]
const
deployConfig
=
hre
.
deployConfig
.
getDeployConfig
(
l1
)
const
sequencerFeeVaultRecipient
=
deployConfig
.
sequencerFeeVaultRecipient
if
(
sequencerFeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
if
(
sequencerFeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
throw
new
Error
(
`SequencerFeeVault RECIPIENT undefined`
)
throw
new
Error
(
`SequencerFeeVault RECIPIENT undefined`
)
}
}
...
...
packages/contracts-bedrock/deploy/107-BaseFeeVaultImpl.ts
View file @
d8bd651a
...
@@ -6,7 +6,10 @@ import { ethers } from 'ethers'
...
@@ -6,7 +6,10 @@ import { ethers } from 'ethers'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
baseFeeVaultRecipient
=
hre
.
deployConfig
.
baseFeeVaultRecipient
const
l1
=
hre
.
network
.
companionNetworks
[
'
l1
'
]
const
deployConfig
=
hre
.
deployConfig
.
getDeployConfig
(
l1
)
const
baseFeeVaultRecipient
=
deployConfig
.
baseFeeVaultRecipient
if
(
baseFeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
if
(
baseFeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
throw
new
Error
(
'
BaseFeeVault RECIPIENT undefined
'
)
throw
new
Error
(
'
BaseFeeVault RECIPIENT undefined
'
)
}
}
...
...
packages/contracts-bedrock/deploy/108-L1FeeVaultImpl.ts
View file @
d8bd651a
...
@@ -6,7 +6,10 @@ import { ethers } from 'ethers'
...
@@ -6,7 +6,10 @@ import { ethers } from 'ethers'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
l1FeeVaultRecipient
=
hre
.
deployConfig
.
l1FeeVaultRecipient
const
l1
=
hre
.
network
.
companionNetworks
[
'
l1
'
]
const
deployConfig
=
hre
.
deployConfig
.
getDeployConfig
(
l1
)
const
l1FeeVaultRecipient
=
deployConfig
.
l1FeeVaultRecipient
if
(
l1FeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
if
(
l1FeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
throw
new
Error
(
'
L1FeeVault RECIPIENT undefined
'
)
throw
new
Error
(
'
L1FeeVault RECIPIENT undefined
'
)
}
}
...
...
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