@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/CHANGELOG.md +14 -0
- package/dist/cjs/transactions/Transaction.d.ts +2 -2
- package/dist/cjs/transactions/Transaction.js +2 -2
- package/dist/cjs/transactions/Transaction.js.map +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/transactions/Transaction.d.ts +2 -2
- package/dist/esm/transactions/Transaction.js +2 -2
- package/dist/esm/transactions/Transaction.js.map +2 -2
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/transactions/Transaction.ts +4 -4
- package/src/version.ts +1 -1
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.
|
|
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.
|
|
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?:
|
|
747
|
+
client?: ClientWithCoreApi;
|
|
748
748
|
} = {},
|
|
749
749
|
): Promise<string> {
|
|
750
750
|
await this.prepareForSerialization(options);
|
package/src/version.ts
CHANGED