@mysten/sui.js
Advanced tools
Comparing version 0.45.0 to 0.45.1
# @mysten/sui.js | ||
## 0.45.1 | ||
### Patch Changes | ||
- 30b47b758: Fix formatting when parsing addresses with bcs.Address | ||
## 0.45.0 | ||
@@ -4,0 +10,0 @@ |
@@ -73,3 +73,3 @@ "use strict"; | ||
input: (val) => typeof val === "string" ? (0, import_bcs.fromHEX)((0, import_sui_types.normalizeSuiAddress)(val)) : val, | ||
output: (val) => (0, import_bcs.toHEX)(val) | ||
output: (val) => (0, import_sui_types.normalizeSuiAddress)((0, import_bcs.toHEX)(val)) | ||
}); | ||
@@ -76,0 +76,0 @@ const ObjectDigest = import_bcs.bcs.vector(import_bcs.bcs.u8()).transform({ |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.45.0"; | ||
export declare const TARGETED_RPC_VERSION = "1.13.0"; | ||
export declare const PACKAGE_VERSION = "0.45.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.14.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "0.45.0"; | ||
const TARGETED_RPC_VERSION = "1.13.0"; | ||
const PACKAGE_VERSION = "0.45.1"; | ||
const TARGETED_RPC_VERSION = "1.14.0"; | ||
//# sourceMappingURL=version.js.map |
@@ -55,3 +55,3 @@ import { | ||
input: (val) => typeof val === "string" ? fromHEX(normalizeSuiAddress(val)) : val, | ||
output: (val) => toHEX(val) | ||
output: (val) => normalizeSuiAddress(toHEX(val)) | ||
}); | ||
@@ -58,0 +58,0 @@ const ObjectDigest = bcs.vector(bcs.u8()).transform({ |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.45.0"; | ||
export declare const TARGETED_RPC_VERSION = "1.13.0"; | ||
export declare const PACKAGE_VERSION = "0.45.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.14.0"; |
@@ -1,3 +0,3 @@ | ||
const PACKAGE_VERSION = "0.45.0"; | ||
const TARGETED_RPC_VERSION = "1.13.0"; | ||
const PACKAGE_VERSION = "0.45.1"; | ||
const TARGETED_RPC_VERSION = "1.14.0"; | ||
export { | ||
@@ -4,0 +4,0 @@ PACKAGE_VERSION, |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sui-typescript-docs.vercel.app", | ||
"version": "0.45.0", | ||
"version": "0.45.1", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "sideEffects": false, |
@@ -185,3 +185,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
typeof val === 'string' ? fromHEX(normalizeSuiAddress(val)) : val, | ||
output: (val) => toHEX(val), | ||
output: (val) => normalizeSuiAddress(toHEX(val)), | ||
}); | ||
@@ -188,0 +188,0 @@ |
@@ -66,3 +66,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
return { | ||
objectId: (Math.random() * 100000).toFixed(0).padEnd(64, '0'), | ||
objectId: normalizeSuiAddress((Math.random() * 100000).toFixed(0).padEnd(64, '0')), | ||
version: String((Math.random() * 10000).toFixed(0)), | ||
@@ -74,6 +74,6 @@ digest: toB58(new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9])), | ||
it('can serialize transaction data with a programmable transaction', () => { | ||
let sui = normalizeSuiAddress('0x2').replace('0x', ''); | ||
let sui = normalizeSuiAddress('0x2'); | ||
let txData = { | ||
V1: { | ||
sender: normalizeSuiAddress('0xBAD').replace('0x', ''), | ||
sender: normalizeSuiAddress('0xBAD'), | ||
expiration: { None: true }, | ||
@@ -80,0 +80,0 @@ gasData: { |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.45.0'; | ||
export const TARGETED_RPC_VERSION = '1.13.0'; | ||
export const PACKAGE_VERSION = '0.45.1'; | ||
export const TARGETED_RPC_VERSION = '1.14.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
2481037