@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.60.0",
3
+ "version": "1.61.0",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
package/src/connection.ts CHANGED
@@ -4832,7 +4832,7 @@ export class Connection {
4832
4832
  signersOrOptions?: Array<Signer> | SendOptions,
4833
4833
  options?: SendOptions,
4834
4834
  ): Promise<TransactionSignature> {
4835
- if ('message' in transaction) {
4835
+ if ('version' in transaction) {
4836
4836
  if (signersOrOptions && Array.isArray(signersOrOptions)) {
4837
4837
  throw new Error('Invalid arguments');
4838
4838
  }
@@ -228,6 +228,9 @@ export class ComputeBudgetProgram {
228
228
  'ComputeBudget111111111111111111111111111111',
229
229
  );
230
230
 
231
+ /**
232
+ * @deprecated Instead, call {@link setComputeUnitLimit} and/or {@link setComputeUnitPrice}
233
+ */
231
234
  static requestUnits(params: RequestUnitsParams): TransactionInstruction {
232
235
  const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.RequestUnits;
233
236
  const data = encodeData(type, params);
@@ -17,6 +17,10 @@ export class VersionedTransaction {
17
17
  signatures: Array<Uint8Array>;
18
18
  message: VersionedMessage;
19
19
 
20
+ get version(): TransactionVersion {
21
+ return this.message.version;
22
+ }
23
+
20
24
  constructor(message: VersionedMessage, signatures?: Array<Uint8Array>) {
21
25
  if (signatures !== undefined) {
22
26
  assert(