@ -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
@ -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,