btc-wallet 0.3.21 → 0.3.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +7 -6
- package/dist/index.js.map +3 -3
- package/dist/utils/nearUtils.d.ts +1 -1
- package/esm/index.js +7 -6
- package/esm/index.js.map +3 -3
- package/package.json +1 -1
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
|
2836
|
-
if (
|
2837
|
-
console.log(`Transaction ${hash} result:`,
|
2838
|
-
results.set(hash,
|
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
|
-
|
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.
|
3975
|
+
return "0.3.22";
|
3975
3976
|
};
|
3976
3977
|
if (typeof window !== "undefined") {
|
3977
3978
|
window.__BTC_WALLET_VERSION = getVersion();
|