diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-05-18 05:35:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 05:35:21 +0800 |
commit | fae34c169f3a53053d6fbd471551015b5a0a4bb2 (patch) | |
tree | d4db40faa6d154060d75481fe6b3e12d24331575 /ui/app | |
parent | 965a72486ff8745e86cd81a93c880904416d4c58 (diff) | |
parent | 7e7ceab95edcf27a240da478a1f5da2d97cd5e85 (diff) | |
download | tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.tar tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.tar.gz tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.tar.bz2 tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.tar.lz tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.tar.xz tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.tar.zst tangerine-wallet-browser-fae34c169f3a53053d6fbd471551015b5a0a4bb2.zip |
Merge pull request #1446 from MetaMask/DisallowDecimalsInHexInput
Fix bug where decimals in gas inputs gave strange results
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/hex-as-decimal-input.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js index e37aaa8c3..4a71e9585 100644 --- a/ui/app/components/hex-as-decimal-input.js +++ b/ui/app/components/hex-as-decimal-input.js @@ -139,7 +139,7 @@ HexAsDecimalInput.prototype.constructWarning = function () { } function hexify (decimalString) { - const hexBN = new BN(decimalString, 10) + const hexBN = new BN(parseInt(decimalString), 10) return '0x' + hexBN.toString('hex') } |