Commit 20497943 authored by Maurelian's avatar Maurelian Committed by Kelvin Fichter

fix: await hardhatnode

parent 0a147680
...@@ -86,7 +86,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -86,7 +86,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 Proxy__OVM_L1StandardBridge.connect(owner).setOwner( await Proxy__OVM_L1StandardBridge.connect(owner).setOwner(
ChugSplashDictator.address ChugSplashDictator.address
......
...@@ -43,7 +43,7 @@ export const deployAndVerifyAndThen = async ({ ...@@ -43,7 +43,7 @@ export const deployAndVerifyAndThen = async ({
await hre.ethers.provider.waitForTransaction(result.transactionHash) await hre.ethers.provider.waitForTransaction(result.transactionHash)
if (result.newlyDeployed) { if (result.newlyDeployed) {
if (!isHardhatNode(hre)) { if (!(await isHardhatNode(hre))) {
// Verification sometimes fails, even when the contract is correctly deployed and eventually // Verification sometimes fails, even when the contract is correctly deployed and eventually
// verified. Possibly due to a race condition. We don't want to halt the whole deployment // verified. Possibly due to a race condition. We don't want to halt the whole deployment
// process just because that happens. // process just because that happens.
......
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