Comparing version 0.0.39 to 0.0.40
@@ -533,3 +533,3 @@ "use strict"; | ||
} | ||
const allScriptHashesPromise = scriptHashes.map(async (scriptHash) => { | ||
const allScriptHashesPromises = scriptHashes.map(async (scriptHash) => { | ||
const response = await electrum.subscribeAddress({ | ||
@@ -547,3 +547,3 @@ scriptHash, | ||
}); | ||
const allUtxosPromise = allUtxos.map(async (utxo) => { | ||
const allUtxosPromises = allUtxos.map(async (utxo) => { | ||
const response = await electrum.subscribeAddress({ | ||
@@ -567,3 +567,3 @@ scriptHash: utxo.scriptHash, | ||
try { | ||
await Promise.all([allScriptHashesPromise, allUtxosPromise]); | ||
await Promise.all([...allScriptHashesPromises, ...allUtxosPromises]); | ||
} | ||
@@ -570,0 +570,0 @@ catch (e) { |
{ | ||
"name": "beignet", | ||
"version": "0.0.39", | ||
"version": "0.0.40", | ||
"description": "A self-custodial, JS Bitcoin wallet management library.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -861,3 +861,3 @@ import { | ||
// Subscribe to all provided script hashes. | ||
const allScriptHashesPromise = scriptHashes.map(async (scriptHash) => { | ||
const allScriptHashesPromises = scriptHashes.map(async (scriptHash) => { | ||
const response: ISubscribeToAddress = await electrum.subscribeAddress({ | ||
@@ -876,3 +876,3 @@ scriptHash, | ||
const allUtxosPromise = allUtxos.map(async (utxo) => { | ||
const allUtxosPromises = allUtxos.map(async (utxo) => { | ||
const response: ISubscribeToAddress = await electrum.subscribeAddress({ | ||
@@ -897,3 +897,3 @@ scriptHash: utxo.scriptHash, | ||
try { | ||
await Promise.all([allScriptHashesPromise, allUtxosPromise]); | ||
await Promise.all([...allScriptHashesPromises, ...allUtxosPromises]); | ||
} catch (e) { | ||
@@ -900,0 +900,0 @@ return err(e); |
Sorry, the diff of this file is not supported yet
9344099