diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-05-18 05:13:05 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-05-18 05:13:05 +0800 |
commit | 24737ded3466da61fd96015beb6931e59d8232a7 (patch) | |
tree | 7677ea03fb7d72a8618b520a8f910a2d76d78693 /ui | |
parent | 965a72486ff8745e86cd81a93c880904416d4c58 (diff) | |
download | tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.tar tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.tar.gz tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.tar.bz2 tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.tar.lz tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.tar.xz tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.tar.zst tangerine-wallet-browser-24737ded3466da61fd96015beb6931e59d8232a7.zip |
Fix bug where decimals in gas inputs gave strange results
Diffstat (limited to 'ui')
-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..d24fdcb7b 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(decimalString.split('.')[0], 10) return '0x' + hexBN.toString('hex') } |