@solana/web3.js 1.60.0 → 1.61.0

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.
@@ -2076,6 +2076,10 @@ class TransactionMessage {
2076
2076
  * Versioned transaction class
2077
2077
  */
2078
2078
  class VersionedTransaction {
2079
+ get version() {
2080
+ return this.message.version;
2081
+ }
2082
+
2079
2083
  constructor(message, signatures) {
2080
2084
  this.signatures = void 0;
2081
2085
  this.message = void 0;
@@ -6528,7 +6532,7 @@ class Connection {
6528
6532
  */
6529
6533
  // eslint-disable-next-line no-dupe-class-members
6530
6534
  async sendTransaction(transaction, signersOrOptions, options) {
6531
- if ('message' in transaction) {
6535
+ if ('version' in transaction) {
6532
6536
  if (signersOrOptions && Array.isArray(signersOrOptions)) {
6533
6537
  throw new Error('Invalid arguments');
6534
6538
  }
@@ -7891,6 +7895,9 @@ class ComputeBudgetProgram {
7891
7895
  */
7892
7896
 
7893
7897
 
7898
+ /**
7899
+ * @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
7900
+ */
7894
7901
  static requestUnits(params) {
7895
7902
  const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
7896
7903
  const data = encodeData(type, params);