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/dist/index.mjs CHANGED
@@ -837,7 +837,7 @@ function toBigInt(value) {
837
837
  return BigInt(value);
838
838
  }
839
839
  function tryToBigInt(value) {
840
- return value ? BigInt(value) : void 0;
840
+ return value === void 0 ? void 0 : BigInt(value);
841
841
  }
842
842
  function toHex(value) {
843
843
  const bn = toBigInt(value);
@@ -891,7 +891,7 @@ function getDecimalString(str) {
891
891
  }
892
892
  function getHexString(str) {
893
893
  if (isHex(str)) {
894
- return str;
894
+ return toHex(str);
895
895
  }
896
896
  if (isStringWholeNumber(str)) {
897
897
  return toHexString(str);