@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.
@@ -2046,6 +2046,10 @@ class TransactionMessage {
2046
2046
  * Versioned transaction class
2047
2047
  */
2048
2048
  class VersionedTransaction {
2049
+ get version() {
2050
+ return this.message.version;
2051
+ }
2052
+
2049
2053
  constructor(message, signatures) {
2050
2054
  this.signatures = void 0;
2051
2055
  this.message = void 0;
@@ -3470,7 +3474,7 @@ class AddressLookupTableAccount {
3470
3474
  }
3471
3475
 
3472
3476
  isActive() {
3473
- const U64_MAX = 2n ** 64n - 1n;
3477
+ const U64_MAX = 18446744073709551615n;
3474
3478
  return this.state.deactivationSlot === U64_MAX;
3475
3479
  }
3476
3480
 
@@ -6498,7 +6502,7 @@ class Connection {
6498
6502
  */
6499
6503
  // eslint-disable-next-line no-dupe-class-members
6500
6504
  async sendTransaction(transaction, signersOrOptions, options) {
6501
- if ('message' in transaction) {
6505
+ if ('version' in transaction) {
6502
6506
  if (signersOrOptions && Array.isArray(signersOrOptions)) {
6503
6507
  throw new Error('Invalid arguments');
6504
6508
  }
@@ -7861,6 +7865,9 @@ class ComputeBudgetProgram {
7861
7865
  */
7862
7866
 
7863
7867
 
7868
+ /**
7869
+ * @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
7870
+ */
7864
7871
  static requestUnits(params) {
7865
7872
  const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
7866
7873
  const data = encodeData(type, params);