@stacks/bns 7.4.1-beta.3 → 7.4.1-pr.1854.1

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/umd/index.js CHANGED
@@ -5791,7 +5791,7 @@ function without0x(value) {
5791
5791
  function hexToBigInt(hex) {
5792
5792
  if (typeof hex !== 'string')
5793
5793
  throw new TypeError(`hexToBigInt: expected string, got ${typeof hex}`);
5794
- return BigInt(`0x${hex}`);
5794
+ return BigInt(with0x(hex));
5795
5795
  }
5796
5796
  function intToHex(integer, byteLength = 8) {
5797
5797
  const value = typeof integer === 'bigint' ? integer : intToBigInt(integer);