Skip to content

Commit

Permalink
add 30 sec wait before 2nd contract deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWong-ca committed Nov 26, 2024
1 parent e9ae592 commit b2ccaec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/hardhat/deploy/01_deal_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ const deployDealInfo: DeployFunction = async function (
with a random private key in the .env file (then used on hardhat.config.ts)
You can run the `yarn account` command to check your balance in every network.
*/

// Wait 30 seconds to ensure DealClient deployment is complete
console.log("⏳ Waiting for 30 seconds to ensure transaction is processed...");
await new Promise(resolve => setTimeout(resolve, 30000));

const [deployerSigner] = await hre.ethers.getSigners();
const deployer = await deployerSigner.getAddress();

Expand Down

0 comments on commit b2ccaec

Please sign in to comment.