btc-wallet 0.3.21 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2832,10 +2832,10 @@ function pollTransactionStatuses(network, hashes) {
2832
2832
  currentAttempt++;
2833
2833
  const promises = Array.from(pendingHashes).map((hash) => __async(this, null, function* () {
2834
2834
  try {
2835
- const result = yield provider.txStatus(hash, "unused", "FINAL");
2836
- if (result && result.status) {
2837
- console.log(`Transaction ${hash} result:`, result);
2838
- results.set(hash, result);
2835
+ const result2 = yield provider.txStatus(hash, "unused", "FINAL");
2836
+ if (result2 && result2.status) {
2837
+ console.log(`Transaction ${hash} result:`, result2);
2838
+ results.set(hash, result2);
2839
2839
  pendingHashes.delete(hash);
2840
2840
  }
2841
2841
  } catch (error) {
@@ -2855,7 +2855,8 @@ function pollTransactionStatuses(network, hashes) {
2855
2855
  yield delay(1e4);
2856
2856
  }
2857
2857
  }
2858
- return hashes.map((hash) => results.get(hash));
2858
+ const result = hashes.map((hash) => results.get(hash)).filter(Boolean);
2859
+ return result;
2859
2860
  });
2860
2861
  }
2861
2862
 
@@ -3971,7 +3972,7 @@ function setupBTCWallet({
3971
3972
 
3972
3973
  // src/index.ts
3973
3974
  var getVersion = () => {
3974
- return "0.3.21";
3975
+ return "0.3.22";
3975
3976
  };
3976
3977
  if (typeof window !== "undefined") {
3977
3978
  window.__BTC_WALLET_VERSION = getVersion();