@mysten/sui 1.43.0 → 1.43.2

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
@@ -3,7 +3,7 @@
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "Sui TypeScript API",
5
5
  "homepage": "https://sdk.mystenlabs.com",
6
- "version": "1.43.0",
6
+ "version": "1.43.2",
7
7
  "license": "Apache-2.0",
8
8
  "sideEffects": false,
9
9
  "files": [
@@ -160,7 +160,7 @@
160
160
  "graphql": "^16.11.0",
161
161
  "poseidon-lite": "0.2.1",
162
162
  "valibot": "^0.36.0",
163
- "@mysten/bcs": "1.9.0",
163
+ "@mysten/bcs": "1.9.2",
164
164
  "@mysten/utils": "0.2.0"
165
165
  },
166
166
  "scripts": {
@@ -6,7 +6,6 @@ import { fromBase64, isSerializedBcs } from '@mysten/bcs';
6
6
  import type { InferInput } from 'valibot';
7
7
  import { is, parse } from 'valibot';
8
8
 
9
- import type { SuiClient } from '../client/index.js';
10
9
  import type { SignatureWithBytes, Signer } from '../cryptography/index.js';
11
10
  import { normalizeSuiAddress } from '../utils/sui-types.js';
12
11
  import type { TransactionArgument } from './Commands.js';
@@ -32,6 +31,7 @@ import { createPure } from './pure.js';
32
31
  import { TransactionDataBuilder } from './TransactionData.js';
33
32
  import { getIdFromCallArg } from './utils.js';
34
33
  import { namedPackagesPlugin } from './plugins/NamedPackagesPlugin.js';
34
+ import type { ClientWithCoreApi } from '../experimental/core.js';
35
35
 
36
36
  export type TransactionObjectArgument =
37
37
  | Exclude<InferInput<typeof ArgumentSchema>, { Input: unknown; type?: 'pure' }>
@@ -508,13 +508,13 @@ export class Transaction {
508
508
  this.#data.mapCommandArguments(resultIndex, (arg) => {
509
509
  if (arg.$kind === 'Result' && !this.#availableResults.has(arg.Result)) {
510
510
  throw new Error(
511
- `Result { Result: ${arg.Result} } is not available to use the current transaction`,
511
+ `Result { Result: ${arg.Result} } is not available to use in the current transaction`,
512
512
  );
513
513
  }
514
514
 
515
515
  if (arg.$kind === 'NestedResult' && !this.#availableResults.has(arg.NestedResult[0])) {
516
516
  throw new Error(
517
- `Result { NestedResult: [${arg.NestedResult[0]}, ${arg.NestedResult[1]}] } is not available to use the current transaction`,
517
+ `Result { NestedResult: [${arg.NestedResult[0]}, ${arg.NestedResult[1]}] } is not available to use in the current transaction`,
518
518
  );
519
519
  }
520
520
 
@@ -744,7 +744,7 @@ export class Transaction {
744
744
  /** Derive transaction digest */
745
745
  async getDigest(
746
746
  options: {
747
- client?: SuiClient;
747
+ client?: ClientWithCoreApi;
748
748
  } = {},
749
749
  ): Promise<string> {
750
750
  await this.prepareForSerialization(options);
package/src/version.ts CHANGED
@@ -3,5 +3,5 @@
3
3
 
4
4
  // This file is generated by genversion.mjs. Do not edit it directly.
5
5
 
6
- export const PACKAGE_VERSION = '1.43.0';
6
+ export const PACKAGE_VERSION = '1.43.2';
7
7
  export const TARGETED_RPC_VERSION = '1.60.0';