chore: improve docs for Connection.confirmTransaction method (#11889)

Co-authored-by: Paul Schaaf <paul.schaaf@maibornwolff.de>
This commit is contained in:
Paul 2020-09-05 09:34:03 +02:00 committed by GitHub
parent 023bb8f150
commit 3bd3795e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1947,7 +1947,10 @@ export class Connection {
}
/**
* Confirm the transaction identified by the specified signature
* Confirm the transaction identified by the specified signature.
*
* If `confirmations` count is not specified, wait for transaction to be finalized.
*
*/
async confirmTransaction(
signature: TransactionSignature,
@ -1960,7 +1963,7 @@ export class Connection {
for (;;) {
const status = statusResponse.value;
if (status) {
// Received a status, if not an error wait for confirmation
// 'status.confirmations === null' implies that the tx has been finalized
if (
status.err ||
status.confirmations === null ||