diff --git a/remix-lib/src/util.js b/remix-lib/src/util.js index 2c3f1169c3..cae355ee7a 100644 --- a/remix-lib/src/util.js +++ b/remix-lib/src/util.js @@ -41,6 +41,17 @@ module.exports = { return integers }, + /* + ints: list of BNs + */ + hexListFromBNs: function (bnList) { + var ret = [] + for (var k in bnList) { + ret.push('0x' + bnList[k].toString('hex', 64)) + } + return ret + }, + /* ints: list of IntArrays */ diff --git a/remix-lib/src/web3Provider/web3VmProvider.js b/remix-lib/src/web3Provider/web3VmProvider.js index 9c00d51547..a2eda0add7 100644 --- a/remix-lib/src/web3Provider/web3VmProvider.js +++ b/remix-lib/src/web3Provider/web3VmProvider.js @@ -149,7 +149,7 @@ web3VmProvider.prototype.pushTrace = function (self, data) { previousopcode.invalidDepthChange = previousopcode.op !== 'RETURN' && previousopcode.op !== 'STOP' } var step = { - stack: util.hexListConvert(data.stack), + stack: util.hexListFromBNs(data.stack), memory: util.formatMemory(data.memory), storage: data.storage, op: data.opcode.name,