From c99fc0941a522215b2b90ea744d20e1bbb261349 Mon Sep 17 00:00:00 2001 From: prathamesh0 <42446521+prathamesh0@users.noreply.github.com> Date: Thu, 13 Apr 2023 12:43:41 +0530 Subject: [PATCH] Wait for transfer tx receipts when configuring Optimism (#323) --- .../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}`) })