From fde4657e8491c536efbba036538be6fa7e5faabd Mon Sep 17 00:00:00 2001 From: Patrick Gallagher Date: Tue, 17 Dec 2019 18:42:33 -0500 Subject: [PATCH] Add block confirmations argument to waitForTransaction() --- source/ethers.js/source/api-providers.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ethers.js/source/api-providers.rst b/source/ethers.js/source/api-providers.rst index 346352f..ccf0dfe 100644 --- a/source/ethers.js/source/api-providers.rst +++ b/source/ethers.js/source/api-providers.rst @@ -648,10 +648,10 @@ an array of topics Waiting for Transactions ------------------------ -:sup:`prototype` . waitForTransaction ( transactionHash ) |nbsp| :sup:`=>` |nbsp| :sup:`Promise` +:sup:`prototype` . waitForTransaction ( transactionHash [, confirmations ] ) |nbsp| :sup:`=>` |nbsp| :sup:`Promise` Return a :ref:`Promise ` which resolves to the :ref:`Transaction Receipt ` once *transactionHash* is - mined. + mined, with an optional number of block confirmations to wait before resolving. .. code-block:: javascript :caption: *new blocks*