mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
81d3658343
- Now striping hex prefixed gas values, which may have been causing mis-estimation. - Unified calculation logic to be entirely functional. - Greatly simplified how the pending-tx form keeps updated form state. Still needs a commit from @kumavis to ensure the background passes in a txMeta.txParams.gasPrice value.
8 lines
160 B
JavaScript
8 lines
160 B
JavaScript
const ethUtil = require('ethereumjs-util')
|
|
const BN = ethUtil.BN
|
|
|
|
module.exports = function hexToBn (hex) {
|
|
return new BN(ethUtil.stripHexPrefix(hex), 16)
|
|
}
|
|
|