@mysten/bcs
Advanced tools
Comparing version 0.0.0-experimental-20230613155347 to 0.0.0-experimental-20230613234133
@@ -183,3 +183,3 @@ "use strict"; | ||
let value2 = BigInt(this.read64()); | ||
let result = value2.toString(16) + value1.toString(16).padStart(8, "0"); | ||
let result = value2.toString(16) + value1.toString(16).padStart(16, "0"); | ||
return BigInt("0x" + result).toString(10); | ||
@@ -194,3 +194,3 @@ } | ||
let value2 = BigInt(this.read128()); | ||
let result = value2.toString(16) + value1.toString(16).padStart(16, "0"); | ||
let result = value2.toString(16) + value1.toString(16).padStart(32, "0"); | ||
return BigInt("0x" + result).toString(10); | ||
@@ -197,0 +197,0 @@ } |
# Change Log | ||
## 0.0.0-experimental-20230613155347 | ||
## 0.0.0-experimental-20230613234133 | ||
### Patch Changes | ||
- ca5c72815d: Fix a bcs decoding bug for u128 and u256 values | ||
- fdb569464e: Fixes an issue with a top level generic in a nested vector | ||
@@ -8,0 +9,0 @@ |
@@ -183,3 +183,3 @@ "use strict"; | ||
let value2 = BigInt(this.read64()); | ||
let result = value2.toString(16) + value1.toString(16).padStart(8, "0"); | ||
let result = value2.toString(16) + value1.toString(16).padStart(16, "0"); | ||
return BigInt("0x" + result).toString(10); | ||
@@ -194,3 +194,3 @@ } | ||
let value2 = BigInt(this.read128()); | ||
let result = value2.toString(16) + value1.toString(16).padStart(16, "0"); | ||
let result = value2.toString(16) + value1.toString(16).padStart(32, "0"); | ||
return BigInt("0x" + result).toString(10); | ||
@@ -197,0 +197,0 @@ } |
{ | ||
"name": "@mysten/bcs", | ||
"version": "0.0.0-experimental-20230613155347", | ||
"version": "0.0.0-experimental-20230613234133", | ||
"description": "BCS - Canonical Binary Serialization implementation for JavaScript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -149,3 +149,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
let value2 = BigInt(this.read64()); | ||
let result = value2.toString(16) + value1.toString(16).padStart(8, "0"); | ||
let result = value2.toString(16) + value1.toString(16).padStart(16, "0"); | ||
@@ -161,3 +161,3 @@ return BigInt("0x" + result).toString(10); | ||
let value2 = BigInt(this.read128()); | ||
let result = value2.toString(16) + value1.toString(16).padStart(16, "0"); | ||
let result = value2.toString(16) + value1.toString(16).padStart(32, "0"); | ||
@@ -164,0 +164,0 @@ return BigInt("0x" + result).toString(10); |
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
365832