@solana/kit 4.0.0-canary-20251008101046 → 4.0.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.
|
@@ -3936,7 +3936,10 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
}
|
|
3938
3938
|
function compressTransactionMessageUsingAddressLookupTables(transactionMessage, addressesByLookupTableAddress) {
|
|
3939
|
-
const
|
|
3939
|
+
const programAddresses = new Set(transactionMessage.instructions.map((ix) => ix.programAddress));
|
|
3940
|
+
const eligibleLookupAddresses = new Set(
|
|
3941
|
+
Object.values(addressesByLookupTableAddress).flatMap((a) => a).filter((address2) => !programAddresses.has(address2))
|
|
3942
|
+
);
|
|
3940
3943
|
const newInstructions = [];
|
|
3941
3944
|
let updatedAnyInstructions = false;
|
|
3942
3945
|
for (const instruction of transactionMessage.instructions) {
|
|
@@ -3947,7 +3950,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
3947
3950
|
const newAccounts = [];
|
|
3948
3951
|
let updatedAnyAccounts = false;
|
|
3949
3952
|
for (const account of instruction.accounts) {
|
|
3950
|
-
if ("lookupTableAddress" in account || !
|
|
3953
|
+
if ("lookupTableAddress" in account || !eligibleLookupAddresses.has(account.address) || isSignerRole(account.role)) {
|
|
3951
3954
|
newAccounts.push(account);
|
|
3952
3955
|
continue;
|
|
3953
3956
|
}
|
|
@@ -6207,7 +6210,7 @@ this.globalThis.solanaWeb3 = (function (exports) {
|
|
|
6207
6210
|
...config.headers ? normalizeHeaders2(config.headers) : void 0,
|
|
6208
6211
|
...{
|
|
6209
6212
|
// Keep these headers lowercase so they will override any user-supplied headers above.
|
|
6210
|
-
"solana-client": `js/${"4.0.0
|
|
6213
|
+
"solana-client": `js/${"4.0.0"}`
|
|
6211
6214
|
}
|
|
6212
6215
|
}
|
|
6213
6216
|
}),
|