1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00

Fix decimal tolerance

This commit is contained in:
Dan Finlay 2017-05-17 14:31:06 -07:00
parent 24737ded34
commit 7e7ceab95e

View File

@ -139,7 +139,7 @@ HexAsDecimalInput.prototype.constructWarning = function () {
}
function hexify (decimalString) {
const hexBN = new BN(decimalString.split('.')[0], 10)
const hexBN = new BN(parseInt(decimalString), 10)
return '0x' + hexBN.toString('hex')
}