From 0c2b732d34880d9710734938d5388b7f8fae9624 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Tue, 21 Nov 2023 01:01:44 -0800 Subject: [PATCH] wait for tx in barge mint --- scripts/deploy-contracts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/deploy-contracts.js b/scripts/deploy-contracts.js index f9b5a51e..8c6044ef 100644 --- a/scripts/deploy-contracts.js +++ b/scripts/deploy-contracts.js @@ -351,7 +351,8 @@ async function main() { for(let walletNo=1;walletNo<10;walletNo++){ const oceanHolder = new Wallet.fromMnemonic(process.env.MNEMONIC,`m/44'/60'/0'/0/${walletNo}`); console.log("\t\tSending 100000 Ocean to "+oceanHolder.address) - await ocean.connect(owner).mint(oceanHolder.address,ethers.utils.parseUnits('100000', 'ether'), options); + const mintTx=await ocean.connect(owner).mint(oceanHolder.address,ethers.utils.parseUnits('100000', 'ether'), options); + await mintTx.wait() } }