parent
3eaa2583d8
commit
5663cb3655
@ -1,23 +0,0 @@ |
||||
var TreeView = require('./TreeView') |
||||
var ethJSUtil = require('ethereumjs-util') |
||||
var BN = ethJSUtil.BN |
||||
var remixLib = require('remix-lib') |
||||
var txFormat = remixLib.execution.txFormat |
||||
|
||||
module.exports = { |
||||
decodeResponseToTreeView: function (response, fnabi) { |
||||
var treeView = new TreeView({ |
||||
extractData: (item, parent, key) => { |
||||
var ret = {} |
||||
if (BN.isBN(item)) { |
||||
ret.self = item.toString(10) |
||||
ret.children = [] |
||||
} else { |
||||
ret = treeView.extractDataDefault(item, parent, key) |
||||
} |
||||
return ret |
||||
} |
||||
}) |
||||
return treeView.render(txFormat.decodeResponse(response, fnabi)) |
||||
} |
||||
} |
Loading…
Reference in new issue