mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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) {
|
function hexify (decimalString) {
|
||||||
const hexBN = new BN(decimalString.split('.')[0], 10)
|
const hexBN = new BN(parseInt(decimalString), 10)
|
||||||
return '0x' + hexBN.toString('hex')
|
return '0x' + hexBN.toString('hex')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user