mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 09:23:21 +01:00
Fix bug where decimals in gas inputs gave strange results
This commit is contained in:
parent
965a72486f
commit
24737ded34
@ -5,6 +5,7 @@
|
||||
- Fix bug where edited gas parameters would not take effect.
|
||||
- Trim currency list.
|
||||
- Fix event filter bug introduced by newer versions of Geth.
|
||||
- Fix bug where decimals in gas inputs could result in strange values.
|
||||
|
||||
## 3.6.4 2017-5-8
|
||||
|
||||
|
@ -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')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user