@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.iife.js CHANGED
@@ -12534,6 +12534,10 @@ var solanaWeb3 = (function (exports) {
12534
12534
  * Versioned transaction class
12535
12535
  */
12536
12536
  class VersionedTransaction {
12537
+ get version() {
12538
+ return this.message.version;
12539
+ }
12540
+
12537
12541
  constructor(message, signatures) {
12538
12542
  this.signatures = void 0;
12539
12543
  this.message = void 0;
@@ -17123,7 +17127,7 @@ var solanaWeb3 = (function (exports) {
17123
17127
  }
17124
17128
 
17125
17129
  isActive() {
17126
- const U64_MAX = 2n ** 64n - 1n;
17130
+ const U64_MAX = 18446744073709551615n;
17127
17131
  return this.state.deactivationSlot === U64_MAX;
17128
17132
  }
17129
17133
 
@@ -20151,7 +20155,7 @@ var solanaWeb3 = (function (exports) {
20151
20155
  */
20152
20156
  // eslint-disable-next-line no-dupe-class-members
20153
20157
  async sendTransaction(transaction, signersOrOptions, options) {
20154
- if ('message' in transaction) {
20158
+ if ('version' in transaction) {
20155
20159
  if (signersOrOptions && Array.isArray(signersOrOptions)) {
20156
20160
  throw new Error('Invalid arguments');
20157
20161
  }
@@ -21514,6 +21518,9 @@ var solanaWeb3 = (function (exports) {
21514
21518
  */
21515
21519
 
21516
21520
 
21521
+ /**
21522
+ * @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
21523
+ */
21517
21524
  static requestUnits(params) {
21518
21525
  const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
21519
21526
  const data = encodeData(type, params);