Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
throw new Error("Deployments.json doesn't include the necessary addresses")
const maxSubmissionCost = 0
const gasPrice = 0
const maxGas = 100000000000
const ethERC20Bridge = await EthERC20Bridge.deploy()
console.log('EthERC20Bridge logic deployed to:', ethERC20Bridge.address)
const l2Provider = new providers.JsonRpcProvider(
'https://kovan4.arbitrum.io/rpc'
// 'https://devnet-l2.arbitrum.io/rpc'
)
const l2PrivKey = process.env['DEVNET_PRIVKEY']
if (!l2PrivKey) throw new Error('Missing l2 priv key')
const l2Signer = new ethers.Wallet(l2PrivKey, l2Provider)
const ArbTokenBridge = (
await ethers.getContractFactory('ArbTokenBridge')
).connect(l2Signer)
const arbTokenBridge = await ArbTokenBridge.deploy()
console.log('L2 ArbBridge logic deployed to:', arbTokenBridge.address)
await arbTokenBridge.deployed()
const L1TransparentUpgradeableProxy = await ethers.getContractFactory(
'TransparentUpgradeableProxy'
)
const L2TransparentUpgradeableProxy = (
await ethers.getContractFactory('TransparentUpgradeableProxy')
).connect(l2Signer)