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