Wait for transfer tx receipts when configuring Optimism (#323)
Former-commit-id: c99fc0941a
This commit is contained in:
parent
13499c6e4b
commit
3e80f5f238
@ -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}`)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user