starknet 11.10.6 → 11.10.8
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +20 -5
- package/dist/index.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1048,7 +1048,7 @@ function toBigInt(value) {
|
|
|
1048
1048
|
return BigInt(value);
|
|
1049
1049
|
}
|
|
1050
1050
|
function tryToBigInt(value) {
|
|
1051
|
-
return value ? BigInt(value)
|
|
1051
|
+
return value === void 0 ? void 0 : BigInt(value);
|
|
1052
1052
|
}
|
|
1053
1053
|
function toHex(value) {
|
|
1054
1054
|
const bn = toBigInt(value);
|
|
@@ -1102,7 +1102,7 @@ function getDecimalString(str) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
function getHexString(str) {
|
|
1104
1104
|
if (isHex(str)) {
|
|
1105
|
-
return str;
|
|
1105
|
+
return toHex(str);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (isStringWholeNumber(str)) {
|
|
1108
1108
|
return toHexString(str);
|