mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-17 23:13:21 +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)
|
||
|
}
|
||
|
|