diff options
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r-- | dist/ethereum.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js index e440823f6..2506892e0 100644 --- a/dist/ethereum.js +++ b/dist/ethereum.js @@ -823,12 +823,12 @@ var web3 = { if (hex.substring(0, 2) === '0x') i = 2; for(; i < l; i+=2) { - var code = hex.charCodeAt(i); + var code = parseInt(hex.substr(i, 2), 16); if(code === 0) { break; } - str += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); + str += String.fromCharCode(code); } return str; |