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:
parent
24737ded34
commit
7e7ceab95e
@ -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')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user