-
Hello, I'd like to use the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Specifying the number of confirmations to the EventEmitter API isn't possible, but I think you should be able to do: // Depending on the number of arguments you have...
contract.on(filter, async (arg0, arg1, event) => {
const receipt = await event.getTransactionReceipt();
await contract.provider.waitForTransaction(receipt.transactionHash, 20);
do_stuff_here();
}); In v6, it would make sense for me to add a |
Beta Was this translation helpful? Give feedback.
-
Great, thank you! |
Beta Was this translation helpful? Give feedback.
-
(migrating to discussions) |
Beta Was this translation helpful? Give feedback.
Specifying the number of confirmations to the EventEmitter API isn't possible, but I think you should be able to do:
In v6, it would make sense for me to add a
.wait
to the event object... I'll add it to my list. :)