Commit a3b4c129 authored by yann300's avatar yann300

add temporary fix

parent 8e228fed
......@@ -47,7 +47,12 @@ module.exports = {
hexListFromBNs: function (bnList) {
var ret = []
for (var k in bnList) {
ret.push('0x' + bnList[k].toString('hex', 64))
var v = bnList[k]
if (ethutil.BN.isBN(v)) {
ret.push('0x' + v.toString('hex', 64))
} else {
ret.push('0x' + (new ethutil.BN(v)).toString('hex', 64)) // TEMP FIX TO REMOVE ONCE https://github.com/ethereumjs/ethereumjs-vm/pull/293 is released
}
}
return ret
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment