mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +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)
|
||
|
}
|
||
|
|