@solana/web3.js 1.60.0 → 1.61.1

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/lib/index.cjs.js CHANGED
@@ -2082,6 +2082,10 @@ class TransactionMessage {
2082
2082
  * Versioned transaction class
2083
2083
  */
2084
2084
  class VersionedTransaction {
2085
+ get version() {
2086
+ return this.message.version;
2087
+ }
2088
+
2085
2089
  constructor(message, signatures) {
2086
2090
  this.signatures = void 0;
2087
2091
  this.message = void 0;
@@ -3558,7 +3562,7 @@ class AddressLookupTableAccount {
3558
3562
  }
3559
3563
 
3560
3564
  isActive() {
3561
- const U64_MAX = 2n ** 64n - 1n;
3565
+ const U64_MAX = 18446744073709551615n;
3562
3566
  return this.state.deactivationSlot === U64_MAX;
3563
3567
  }
3564
3568
 
@@ -6594,7 +6598,7 @@ class Connection {
6594
6598
  */
6595
6599
  // eslint-disable-next-line no-dupe-class-members
6596
6600
  async sendTransaction(transaction, signersOrOptions, options) {
6597
- if ('message' in transaction) {
6601
+ if ('version' in transaction) {
6598
6602
  if (signersOrOptions && Array.isArray(signersOrOptions)) {
6599
6603
  throw new Error('Invalid arguments');
6600
6604
  }
@@ -7957,6 +7961,9 @@ class ComputeBudgetProgram {
7957
7961
  */
7958
7962
 
7959
7963
 
7964
+ /**
7965
+ * @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
7966
+ */
7960
7967
  static requestUnits(params) {
7961
7968
  const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
7962
7969
  const data = encodeData(type, params);