From a3b4c129fc465c5e5b2164420d364f15405d7e47 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 Apr 2018 15:19:06 +0200 Subject: [PATCH] add temporary fix --- remix-lib/src/util.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/remix-lib/src/util.js b/remix-lib/src/util.js index cae355ee7a..c68dc8242e 100644 --- a/remix-lib/src/util.js +++ b/remix-lib/src/util.js @@ -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 },