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