@cashscript/utils 0.11.0-next.1 → 0.11.0-next.3
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/dist/data.js +1 -1
- package/package.json +2 -2
package/dist/data.js
CHANGED
|
@@ -17,7 +17,7 @@ export function decodeBool(encodedBool) {
|
|
|
17
17
|
export function encodeInt(int) {
|
|
18
18
|
return bigIntToVmNumber(int);
|
|
19
19
|
}
|
|
20
|
-
export function decodeInt(encodedInt, maxLength =
|
|
20
|
+
export function decodeInt(encodedInt, maxLength = Infinity) {
|
|
21
21
|
const options = { maximumVmNumberByteLength: maxLength };
|
|
22
22
|
const result = vmNumberToBigInt(encodedInt, options);
|
|
23
23
|
if (isVmNumberError(result)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cashscript/utils",
|
|
3
|
-
"version": "0.11.0-next.
|
|
3
|
+
"version": "0.11.0-next.3",
|
|
4
4
|
"description": "CashScript utilities and types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bitcoin cash",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"jest": "^29.7.0",
|
|
49
49
|
"typescript": "^5.7.3"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "db17b6670953b4e081e56a3e4870b29af9c927be"
|
|
52
52
|
}
|