@mysten/sui.js
Advanced tools
Comparing version 0.0.0-experimental-20240117000412 to 0.0.0-experimental-20240123013833
# @mysten/sui.js | ||
## 0.0.0-experimental-20240117000412 | ||
## 0.0.0-experimental-20240123013833 | ||
@@ -8,2 +8,3 @@ ### Patch Changes | ||
- 9a14e61db4: Allow signer in signAndExecuteTransactionBlock to be a Signer rather than a Keypair | ||
- 13e922d9b1: Fix multiple shared objects not respecting mutable correctly | ||
@@ -10,0 +11,0 @@ ## 0.49.1 |
@@ -5,4 +5,3 @@ import type { SerializedBcs } from '@mysten/bcs'; | ||
import { SuiObjectRef } from '../types/index.js'; | ||
import type { ObjectCallArg } from './Inputs.js'; | ||
import { Inputs } from './Inputs.js'; | ||
import { Inputs, ObjectCallArg } from './Inputs.js'; | ||
import { createPure } from './pure.js'; | ||
@@ -9,0 +8,0 @@ import type { TransactionExpiration } from './TransactionBlockData.js'; |
@@ -263,2 +263,5 @@ "use strict"; | ||
); | ||
if (inserted && (0, import_superstruct.is)(inserted.value, import_Inputs.ObjectCallArg) && "Shared" in inserted.value.Object && (0, import_superstruct.is)(value, import_Inputs.ObjectCallArg) && "Shared" in value.Object) { | ||
inserted.value.Object.Shared.mutable = inserted.value.Object.Shared.mutable || value.Object.Shared.mutable; | ||
} | ||
return inserted ?? __privateMethod(this, _input, input_fn).call(this, "object", typeof value === "string" ? (0, import_sui_types.normalizeSuiAddress)(value) : value); | ||
@@ -265,0 +268,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240117000412"; | ||
export declare const TARGETED_RPC_VERSION = "1.17.0"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240123013833"; | ||
export declare const TARGETED_RPC_VERSION = "1.18.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240117000412"; | ||
const TARGETED_RPC_VERSION = "1.17.0"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240123013833"; | ||
const TARGETED_RPC_VERSION = "1.18.0"; | ||
//# sourceMappingURL=version.js.map |
@@ -5,4 +5,3 @@ import type { SerializedBcs } from '@mysten/bcs'; | ||
import { SuiObjectRef } from '../types/index.js'; | ||
import type { ObjectCallArg } from './Inputs.js'; | ||
import { Inputs } from './Inputs.js'; | ||
import { Inputs, ObjectCallArg } from './Inputs.js'; | ||
import { createPure } from './pure.js'; | ||
@@ -9,0 +8,0 @@ import type { TransactionExpiration } from './TransactionBlockData.js'; |
@@ -41,2 +41,3 @@ var __accessCheck = (obj, member, msg) => { | ||
isMutableSharedObjectInput, | ||
ObjectCallArg, | ||
PureCallArg | ||
@@ -252,2 +253,5 @@ } from "./Inputs.js"; | ||
); | ||
if (inserted && is(inserted.value, ObjectCallArg) && "Shared" in inserted.value.Object && is(value, ObjectCallArg) && "Shared" in value.Object) { | ||
inserted.value.Object.Shared.mutable = inserted.value.Object.Shared.mutable || value.Object.Shared.mutable; | ||
} | ||
return inserted ?? __privateMethod(this, _input, input_fn).call(this, "object", typeof value === "string" ? normalizeSuiAddress(value) : value); | ||
@@ -254,0 +258,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240117000412"; | ||
export declare const TARGETED_RPC_VERSION = "1.17.0"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240123013833"; | ||
export declare const TARGETED_RPC_VERSION = "1.18.0"; |
@@ -1,3 +0,3 @@ | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240117000412"; | ||
const TARGETED_RPC_VERSION = "1.17.0"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240123013833"; | ||
const TARGETED_RPC_VERSION = "1.18.0"; | ||
export { | ||
@@ -4,0 +4,0 @@ PACKAGE_VERSION, |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sdk.mystenlabs.com", | ||
"version": "0.0.0-experimental-20240117000412", | ||
"version": "0.0.0-experimental-20240123013833", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "sideEffects": false, |
@@ -21,3 +21,2 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { normalizeSuiAddress, normalizeSuiObjectId } from '../utils/sui-types.js'; | ||
import type { ObjectCallArg } from './Inputs.js'; | ||
import { | ||
@@ -28,2 +27,3 @@ BuilderCallArg, | ||
isMutableSharedObjectInput, | ||
ObjectCallArg, | ||
PureCallArg, | ||
@@ -317,6 +317,19 @@ } from './Inputs.js'; | ||
const id = getIdFromCallArg(value); | ||
// deduplicate | ||
const inserted = this.#blockData.inputs.find( | ||
(i) => i.type === 'object' && id === getIdFromCallArg(i.value), | ||
) as Extract<TransactionArgument, { type?: 'object' }> | undefined; | ||
// Upgrade shared object inputs to mutable if needed: | ||
if ( | ||
inserted && | ||
is(inserted.value, ObjectCallArg) && | ||
'Shared' in inserted.value.Object && | ||
is(value, ObjectCallArg) && | ||
'Shared' in value.Object | ||
) { | ||
inserted.value.Object.Shared.mutable = | ||
inserted.value.Object.Shared.mutable || value.Object.Shared.mutable; | ||
} | ||
return ( | ||
@@ -323,0 +336,0 @@ inserted ?? |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20240117000412'; | ||
export const TARGETED_RPC_VERSION = '1.17.0'; | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20240123013833'; | ||
export const TARGETED_RPC_VERSION = '1.18.0'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2371760
42591