Replies: 1 comment
-
Hey I was having this problem as well and I am using ethers v6.7.0 which it most likely is related to. But the fix is actually pretty simple function listenForTransactionMine(transactionResponse, provider) {
console.log(`Mining ${transactionResponse.hash}...`);
provider.once(transactionResponse.hash, async (transactionReceipt) => {
const confirmations = await transactionReceipt.confirmations();
console.log(
`Completed with ${confirmations} confirmations`,
);
});
} What I did was first console.log out the In this solution:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The console did not print out the blockNumber, but the following content:
Here is my main code:
Beta Was this translation helpful? Give feedback.
All reactions