@solana/transaction-messages 2.4.0-canary-20250709085047 → 2.4.0-canary-20250709085504
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/index.browser.cjs +6 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +6 -1
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.native.mjs +6 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +6 -1
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +6 -1
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/compile/message.d.ts +5 -4
- package/dist/types/compile/message.d.ts.map +1 -1
- package/dist/types/decompile-message.d.ts +4 -2
- package/dist/types/decompile-message.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/index.browser.cjs
CHANGED
|
@@ -587,17 +587,22 @@ function getCompiledStaticAccounts(orderedAccounts) {
|
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
// src/compile/message.ts
|
|
590
|
+
var EMPTY_BLOCKHASH_LIFETIME_CONSTRAINT = {
|
|
591
|
+
blockhash: "11111111111111111111111111111111",
|
|
592
|
+
lastValidBlockHeight: 0n
|
|
593
|
+
};
|
|
590
594
|
function compileTransactionMessage(transactionMessage) {
|
|
591
595
|
const addressMap = getAddressMapFromInstructions(
|
|
592
596
|
transactionMessage.feePayer.address,
|
|
593
597
|
transactionMessage.instructions
|
|
594
598
|
);
|
|
595
599
|
const orderedAccounts = getOrderedAccountsFromAddressMap(addressMap);
|
|
600
|
+
const lifetimeConstraint = transactionMessage.lifetimeConstraint ?? EMPTY_BLOCKHASH_LIFETIME_CONSTRAINT;
|
|
596
601
|
return {
|
|
597
602
|
...transactionMessage.version !== "legacy" ? { addressTableLookups: getCompiledAddressTableLookups(orderedAccounts) } : null,
|
|
598
603
|
header: getCompiledMessageHeader(orderedAccounts),
|
|
599
604
|
instructions: getCompiledInstructions(transactionMessage.instructions, orderedAccounts),
|
|
600
|
-
lifetimeToken: getCompiledLifetimeToken(
|
|
605
|
+
lifetimeToken: getCompiledLifetimeToken(lifetimeConstraint),
|
|
601
606
|
staticAccounts: getCompiledStaticAccounts(orderedAccounts),
|
|
602
607
|
version: transactionMessage.version
|
|
603
608
|
};
|