Closed jokumusic closed 2 years ago
Hex values are already supported via the second argument to bigInt
. For example, bigInt("ff", 16)
.
Hex values are already supported via the second argument to
bigInt
. For example,bigInt("ff", 16)
.
That doesn't work for packages that expect hexstrings to work. It breaks them... Adding the hex parsing lets them work.
I haven't looked carefully, but this change potentially break parsing for non-hexadecimal inputs that happen to begin with 0x, such as bigInt("0xaa12", 36)
I haven't looked carefully, but this change potentially break parsing for non-hexadecimal inputs that happen to begin with 0x, such as
bigInt("0xaa12", 36)
It would break those
This is to support parsing of hex strings that begin with 0x or x