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

pull/7/head
Iuri Matias 7 years ago
parent 0c008d761d
commit 44c7368496
  1. 17
      remix-lib/src/execution/txFormat.js

@ -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) {

Loading…
Cancel
Save