adapt with the new public API

pull/7/head
yann300 7 years ago
parent 52cf826c16
commit 7900bab5e9
  1. 11
      remix-lib/src/util.js
  2. 2
      remix-lib/src/web3Provider/web3VmProvider.js

@ -41,6 +41,17 @@ module.exports = {
return integers 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 ints: list of IntArrays
*/ */

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

Loading…
Cancel
Save