@hawksightco/hawk-sdk 1.2.21 → 1.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CombineTransactions.d.ts","sourceRoot":"","sources":["../../../src/classes/CombineTransactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE9F,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGjD;;OAEG;IACU,OAAO,CAAC,EACnB,UAAU,EACV,KAAK,EACL,WAAW,EACX,YAAY,EACZ,aAAa,GACd,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"CombineTransactions.d.ts","sourceRoot":"","sources":["../../../src/classes/CombineTransactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE9F,qBAAa,mBAAmB;IAE5B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAGjD;;OAEG;IACU,OAAO,CAAC,EACnB,UAAU,EACV,KAAK,EACL,WAAW,EACX,YAAY,EACZ,aAAa,GACd,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CA8BhF"}
|
|
@@ -50,6 +50,7 @@ class CombineTransactions {
|
|
|
50
50
|
const q = ix;
|
|
51
51
|
if (q.data !== undefined && q.data.transaction !== undefined && q.data.transaction instanceof Transaction_1.Transaction) {
|
|
52
52
|
ixs.push(...q.data.transaction.instructions);
|
|
53
|
+
additionalAlt.push(...q.data.transaction.alts.map(alt => alt.key.toBase58()));
|
|
53
54
|
}
|
|
54
55
|
else if (ix instanceof Transaction_1.Transaction) {
|
|
55
56
|
ixs.push(...ix.instructions);
|
|
@@ -61,6 +62,8 @@ class CombineTransactions {
|
|
|
61
62
|
throw new Error("Invalid object");
|
|
62
63
|
}
|
|
63
64
|
}
|
|
65
|
+
// Remove duplicates
|
|
66
|
+
additionalAlt = [...new Set(additionalAlt)];
|
|
64
67
|
return yield (0, functions_1.legacyTxMetadata)({
|
|
65
68
|
connection,
|
|
66
69
|
generalUtility: this.generalUtility,
|