pull/3094/head
yann300 6 years ago
parent cbc43f24a6
commit e5adf7bbfc
  1. 1
      package.json
  2. 2
      src/app/debugger/remix-debugger/index.html
  3. 4
      src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js
  4. 1
      src/app/debugger/remix-debugger/test-browser-debugger/resources/insertTestWeb3.js

@ -157,6 +157,7 @@
"make-mock-compiler": "node ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",
"nightwatch_local": "nightwatch --config nightwatch.js --env local",
"nightwatch_local_debugger": "nightwatch --config nightwatch_debugger.js --env local",
"nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome",
"nightwatch_remote_firefox": "nightwatch --config nightwatch.js --env default",
"nightwatch_remote_ie": "nightwatch --config nightwatch.js --env ie",

@ -9,8 +9,6 @@
var container = document.getElementById('app')
var debuggerBackend = new window.remix.ui.DebuggerBackend({})
container.debugger = new window.remix.ui.Debugger({debugger: debuggerBackend})
debuggerBackend.addProvider('INTERNAL')
debuggerBackend.switchProvider('INTERNAL')
container.appendChild(container.debugger.render())
}
</script>

@ -63,9 +63,9 @@ EthdebuggerUI.prototype.get_web3 = function () {
return this.web3
}
EthdebuggerUI.prototype.updateWeb3Reference = function () {
EthdebuggerUI.prototype.updateWeb3Reference = function (web3) {
if (!this.txBrowser) return
this.txBrowser.web3 = executionContext.web3()
this.txBrowser.web3 = web3 || executionContext.web3()
}
EthdebuggerUI.prototype.setCompilationResult = function (compilationResult) {

@ -58,6 +58,7 @@ function loadTestWeb3 (data) {
uiTestweb3.currentProvider = {host: 'web3 modified for testing purposes :)'}
vmdebugger.addProvider('TEST', uiTestweb3)
vmdebugger.switchProvider('TEST')
container.debugger.updateWeb3Reference(uiTestweb3)
}
function waitForRemix (data) {

Loading…
Cancel
Save