fix #1474: add type argument to Promise (#1476)

This commit is contained in:
Elliot Lee
2021-07-26 11:30:03 -07:00
committed by GitHub
parent 0ac1061d26
commit a973266434

View File

@@ -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<void>((resolve) => {
const ledgerClosedCallback = async (event: LedgerClosedEvent) => {
let status
try {