@mysten/sui.js
Advanced tools
Comparing version 0.0.0-experimental-20231120210737 to 0.0.0-experimental-20231121172842
# @mysten/sui.js | ||
## 0.0.0-experimental-20231120210737 | ||
## 0.0.0-experimental-20231121172842 | ||
@@ -28,2 +28,3 @@ ### Minor Changes | ||
- 194c980cb: Properly determine shared object mutability when being passed by value. | ||
- 9ac7e2f3d: Add additional type exports to zklogin package | ||
@@ -30,0 +31,0 @@ |
@@ -617,3 +617,4 @@ "use strict"; | ||
if (initialSharedVersion) { | ||
const mutable = (0, import_Inputs.isMutableSharedObjectInput)(input.value) || normalizedType != null && (0, import_types.extractMutableReference)(normalizedType) != null; | ||
const isByValue = normalizedType != null && (0, import_types.extractMutableReference)(normalizedType) == null && (0, import_types.extractReference)(normalizedType) == null; | ||
const mutable = (0, import_Inputs.isMutableSharedObjectInput)(input.value) || isByValue || normalizedType != null && (0, import_types.extractMutableReference)(normalizedType) != null; | ||
input.value = import_Inputs.Inputs.SharedObjectRef({ | ||
@@ -620,0 +621,0 @@ objectId: id, |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20231120210737"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20231121172842"; | ||
export declare const TARGETED_RPC_VERSION = "1.15.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "0.0.0-experimental-20231120210737"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20231121172842"; | ||
const TARGETED_RPC_VERSION = "1.15.0"; | ||
//# sourceMappingURL=version.js.map |
@@ -29,2 +29,3 @@ var __accessCheck = (obj, member, msg) => { | ||
extractMutableReference, | ||
extractReference, | ||
extractStructTag, | ||
@@ -605,3 +606,4 @@ getObjectReference, | ||
if (initialSharedVersion) { | ||
const mutable = isMutableSharedObjectInput(input.value) || normalizedType != null && extractMutableReference(normalizedType) != null; | ||
const isByValue = normalizedType != null && extractMutableReference(normalizedType) == null && extractReference(normalizedType) == null; | ||
const mutable = isMutableSharedObjectInput(input.value) || isByValue || normalizedType != null && extractMutableReference(normalizedType) != null; | ||
input.value = Inputs.SharedObjectRef({ | ||
@@ -608,0 +610,0 @@ objectId: id, |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20231120210737"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20231121172842"; | ||
export declare const TARGETED_RPC_VERSION = "1.15.0"; |
@@ -1,2 +0,2 @@ | ||
const PACKAGE_VERSION = "0.0.0-experimental-20231120210737"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20231121172842"; | ||
const TARGETED_RPC_VERSION = "1.15.0"; | ||
@@ -3,0 +3,0 @@ export { |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sui-typescript-docs.vercel.app", | ||
"version": "0.0.0-experimental-20231120210737", | ||
"version": "0.0.0-experimental-20231121172842", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "sideEffects": false, |
@@ -14,2 +14,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
extractMutableReference, | ||
extractReference, | ||
extractStructTag, | ||
@@ -777,6 +778,11 @@ getObjectReference, | ||
// There could be multiple transactions that reference the same shared object. | ||
// If one of them is a mutable reference, then we should mark the input | ||
// If one of them is a mutable reference or taken by value, then we should mark the input | ||
// as mutable. | ||
const isByValue = | ||
normalizedType != null && | ||
extractMutableReference(normalizedType) == null && | ||
extractReference(normalizedType) == null; | ||
const mutable = | ||
isMutableSharedObjectInput(input.value) || | ||
isByValue || | ||
(normalizedType != null && extractMutableReference(normalizedType) != null); | ||
@@ -783,0 +789,0 @@ |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20231120210737'; | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20231121172842'; | ||
export const TARGETED_RPC_VERSION = '1.15.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2368055
42512