Commit 64ea3ac9 authored by Maurelian's avatar Maurelian Committed by Kelvin Fichter

refactor(Contracts): extract chainID check to isHardHatNode function

parent 64d5712c
---
'@eth-optimism/contracts': patch
---
Run etherscan verification after each contract is deployed.
...@@ -76,7 +76,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -76,7 +76,7 @@ const deployFn: DeployFunction = async (hre) => {
// Check if if we're on the hardhat chain ID. This will only happen in CI. If this is the case, we // Check if if we're on the hardhat chain ID. This will only happen in CI. If this is the case, we
// can skip directly to transferring ownership over to the ChugSplashDictator contract. // can skip directly to transferring ownership over to the ChugSplashDictator contract.
if (isHardhatNode(hre)) { if (await isHardhatNode(hre)) {
const owner = await hre.ethers.getSigner(currentOwner) const owner = await hre.ethers.getSigner(currentOwner)
await Lib_AddressManager.connect(owner).transferOwnership( await Lib_AddressManager.connect(owner).transferOwnership(
AddressDictator.address AddressDictator.address
......
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
// details of how to make that work cleanly. This is fine in the meantime. // details of how to make that work cleanly. This is fine in the meantime.
const deployFn: DeployFunction = async (hre) => { const deployFn: DeployFunction = async (hre) => {
// Only execute this step if we're on the hardhat chain ID. // Only execute this step if we're on the hardhat chain ID.
if (isHardhatNode(hre)) { if (await isHardhatNode(hre)) {
const L1StandardBridge = await getContractFromArtifact( const L1StandardBridge = await getContractFromArtifact(
hre, hre,
'Proxy__OVM_L1StandardBridge', 'Proxy__OVM_L1StandardBridge',
......
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