@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.
@@ -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(transactionMessage.lifetimeConstraint),
605
+ lifetimeToken: getCompiledLifetimeToken(lifetimeConstraint),
601
606
  staticAccounts: getCompiledStaticAccounts(orderedAccounts),
602
607
  version: transactionMessage.version
603
608
  };