starknet 11.10.7 → 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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [11.10.8](https://github.com/starknet-io/starknet.js/compare/v11.10.7...v11.10.8) (2026-12-03)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **num:** return 0n from tryToBigInt for a zero value ([#1778](https://github.com/starknet-io/starknet.js/issues/1778)) ([ec4fc00](https://github.com/starknet-io/starknet.js/commit/ec4fc00d0509e2242f2c2799ec29e15a89d818ae))
6
+
1
7
  ## [11.10.7](https://github.com/starknet-io/starknet.js/compare/v11.10.6...v11.10.7) (2026-12-03)
2
8
 
3
9
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -12278,6 +12278,11 @@ declare function toBigInt(value: BigNumberish): bigint;
12278
12278
  /**
12279
12279
  * try to convert BigNumberish to bigint
12280
12280
  * in case of undefined return undefined
12281
+ * @example
12282
+ * ```typescript
12283
+ * tryToBigInt(0); // 0n
12284
+ * tryToBigInt(undefined); // undefined
12285
+ * ```
12281
12286
  */
12282
12287
  declare function tryToBigInt(value: BigNumberish | undefined): bigint | undefined;
12283
12288
  /**
@@ -3088,7 +3088,7 @@ ${indent}}` : "}";
3088
3088
  return BigInt(value);
3089
3089
  }
3090
3090
  function tryToBigInt(value) {
3091
- return value ? BigInt(value) : void 0;
3091
+ return value === void 0 ? void 0 : BigInt(value);
3092
3092
  }
3093
3093
  function toHex(value) {
3094
3094
  const bn = toBigInt(value);