@streamflow/common 6.4.3 → 6.5.0
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/solana/utils.js +3 -3
- package/package.json +3 -3
package/dist/solana/utils.js
CHANGED
|
@@ -449,13 +449,13 @@ function confirmAndEnsureTransaction(connection, signature, ignoreError) {
|
|
|
449
449
|
var response, value;
|
|
450
450
|
return __generator(this, function (_a) {
|
|
451
451
|
switch (_a.label) {
|
|
452
|
-
case 0: return [4 /*yield*/, connection.
|
|
452
|
+
case 0: return [4 /*yield*/, connection.getSignatureStatuses([signature])];
|
|
453
453
|
case 1:
|
|
454
454
|
response = _a.sent();
|
|
455
|
-
if (!response) {
|
|
455
|
+
if (!response || response.value.length === 0 || response.value[0] === null) {
|
|
456
456
|
return [2 /*return*/, null];
|
|
457
457
|
}
|
|
458
|
-
value = response.value;
|
|
458
|
+
value = response.value[0];
|
|
459
459
|
if (!value) {
|
|
460
460
|
return [2 /*return*/, null];
|
|
461
461
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamflow/common",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Common utilities and types used by streamflow packages.",
|
|
5
5
|
"homepage": "https://github.com/streamflow-finance/js-sdk/",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"lint-config": "eslint --print-config",
|
|
24
24
|
"prepublishOnly": "npm run lint && npm run build"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "799b73f95e7914ee0462e9cbb9da5e370278bd78",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@streamflow/eslint-config": "6.
|
|
28
|
+
"@streamflow/eslint-config": "6.5.0",
|
|
29
29
|
"@types/bn.js": "5.1.1",
|
|
30
30
|
"@types/jest": "29.2.4",
|
|
31
31
|
"date-fns": "2.28.0",
|