klaytn/caver-js

hexToNumber interprets string as decimal

Closed this issue · 1 comments

Describe the bug
hexToNumber interprets string as decimal

How to reproduce
caver.utils.hexToNumber('17')
//17

Expected behavior
Throw Error or Return 23

Additional context
https://forum.klaytn.com/t/caver-utils-hextonumber/2867

Thank you for your contribution again =)