From a973266434a37bb30982db5d1b78fec1bf9089ad Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Mon, 26 Jul 2021 11:30:03 -0700 Subject: [PATCH] fix #1474: add type argument to Promise (#1476) --- snippets/src/reliableTransactionSubmission.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/src/reliableTransactionSubmission.ts b/snippets/src/reliableTransactionSubmission.ts index fa88d99a..2ef28a84 100644 --- a/snippets/src/reliableTransactionSubmission.ts +++ b/snippets/src/reliableTransactionSubmission.ts @@ -104,7 +104,7 @@ async function performPayments(payments) { // Most of the time we'll get 'tesSUCCESS' or (after many submissions) 'terQUEUED' console.log(`tx ${i} - tentative: ${result.resultCode}`) - const txFinalizedPromise = new Promise((resolve) => { + const txFinalizedPromise = new Promise((resolve) => { const ledgerClosedCallback = async (event: LedgerClosedEvent) => { let status try {