Commit d8bd651a authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: update to use same deploy config

parent 5cf646ba
...@@ -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`)
} }
......
...@@ -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')
} }
......
...@@ -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')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment