Commit 7900bab5 authored by yann300's avatar yann300

adapt with the new public API

parent 52cf826c
...@@ -42,6 +42,17 @@ module.exports = { ...@@ -42,6 +42,17 @@ module.exports = {
}, },
/* /*
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 ints: list of IntArrays
*/ */
hexListConvert: function (intsList) { hexListConvert: function (intsList) {
......
...@@ -149,7 +149,7 @@ web3VmProvider.prototype.pushTrace = function (self, data) { ...@@ -149,7 +149,7 @@ web3VmProvider.prototype.pushTrace = function (self, data) {
previousopcode.invalidDepthChange = previousopcode.op !== 'RETURN' && previousopcode.op !== 'STOP' previousopcode.invalidDepthChange = previousopcode.op !== 'RETURN' && previousopcode.op !== 'STOP'
} }
var step = { var step = {
stack: util.hexListConvert(data.stack), stack: util.hexListFromBNs(data.stack),
memory: util.formatMemory(data.memory), memory: util.formatMemory(data.memory),
storage: data.storage, storage: data.storage,
op: data.opcode.name, op: data.opcode.name,
......
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