Commit 44c73684 authored by Iuri Matias's avatar Iuri Matias

remove decodeResponseToTreeView and move it upstream since it was causing…

remove decodeResponseToTreeView and move it upstream since it was causing massive issues due to circular dependencies with remix-debugger; it's also an UI dependency and not relevant for remix-lib
parent 0c008d76
......@@ -3,7 +3,6 @@ var ethJSABI = require('ethereumjs-abi')
var ethJSUtil = require('ethereumjs-util')
var BN = ethJSUtil.BN
var helper = require('./txHelper')
var TreeView = require('remix-debugger').ui.TreeView
var executionContext = require('./execution-context')
module.exports = {
......@@ -199,22 +198,6 @@ module.exports = {
return bytecodeToLink
},
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(this.decodeResponse(response, fnabi))
},
decodeResponse: function (response, fnabi) {
// Only decode if there supposed to be fields
if (fnabi.outputs && fnabi.outputs.length > 0) {
......
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