From b45925fca0070de08bff444070bb528f06adf438 Mon Sep 17 00:00:00 2001 From: prathamesh0 Date: Thu, 13 Apr 2023 12:27:52 +0530 Subject: [PATCH] Wait for transfer tx receipts when configuring Optimism --- .../cerc-optimism-contracts/hardhat-tasks/send-balance.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/data/container-build/cerc-optimism-contracts/hardhat-tasks/send-balance.ts b/app/data/container-build/cerc-optimism-contracts/hardhat-tasks/send-balance.ts index dd7065bc..99bf4f74 100644 --- a/app/data/container-build/cerc-optimism-contracts/hardhat-tasks/send-balance.ts +++ b/app/data/container-build/cerc-optimism-contracts/hardhat-tasks/send-balance.ts @@ -16,7 +16,11 @@ task('send-balance', 'Sends Ether to a specified Ethereum account') to, value: ethers.utils.parseEther(amount), }) + const txReceipt = await tx.wait() console.log(`Balance sent to: ${to}, from: ${wallet.address}`) + console.log( + `Block: { number: ${txReceipt.blockNumber}, hash: ${txReceipt.blockHash} }` + ) console.log(`Transaction hash: ${tx.hash}`) }) -- 2.45.2