@haven-fi/solauto-sdk 1.0.246 → 1.0.247
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.
|
@@ -254,7 +254,7 @@ class TransactionsManager {
|
|
|
254
254
|
}
|
|
255
255
|
const txAccounts = items.flatMap((x) => x.tx.getInstructions().flatMap((x) => x.keys.map((x) => x.pubkey)));
|
|
256
256
|
console.log(Array.from(new Set(txAccounts)).map(x => x.toString()));
|
|
257
|
-
const newAccountsUsage =
|
|
257
|
+
const newAccountsUsage = txAccounts.reduce((count, pk) => {
|
|
258
258
|
return updateLookupTable.accountsToAdd.find((x) => x.equals((0, umi_web3js_adapters_1.toWeb3JsPublicKey)(pk)))
|
|
259
259
|
? count + 1
|
|
260
260
|
: count;
|
package/package.json
CHANGED
|
@@ -375,7 +375,7 @@ export class TransactionsManager {
|
|
|
375
375
|
x.tx!.getInstructions().flatMap((x) => x.keys.map((x) => x.pubkey))
|
|
376
376
|
);
|
|
377
377
|
console.log(Array.from(new Set(txAccounts)).map(x => x.toString()));
|
|
378
|
-
const newAccountsUsage =
|
|
378
|
+
const newAccountsUsage = txAccounts.reduce((count, pk) => {
|
|
379
379
|
return updateLookupTable.accountsToAdd.find((x) =>
|
|
380
380
|
x.equals(toWeb3JsPublicKey(pk))
|
|
381
381
|
)
|