mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +01:00
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)
|
||
|
}
|
||
|
|