Commit df5a11c3 authored by yann300's avatar yann300

Merge pull request #709 from ethereum/fixDeployLibrary

Fix deploy library
parents 57c01252 a2d77131
...@@ -62,8 +62,8 @@ module.exports = { ...@@ -62,8 +62,8 @@ module.exports = {
'desiredCapabilities': { 'desiredCapabilities': {
'browserName': 'safari', 'browserName': 'safari',
'javascriptEnabled': true, 'javascriptEnabled': true,
'platform': 'OS X 10.10', 'platform': 'OS X 10.11',
'version': '8.0', 'version': '10.0',
'acceptSslCerts': true, 'acceptSslCerts': true,
'build': 'build-' + TRAVIS_JOB_NUMBER, 'build': 'build-' + TRAVIS_JOB_NUMBER,
'tunnel-identifier': 'remix_tests_' + TRAVIS_JOB_NUMBER 'tunnel-identifier': 'remix_tests_' + TRAVIS_JOB_NUMBER
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome", "nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome",
"nightwatch_remote_firefox": "nightwatch --config nightwatch.js --env default", "nightwatch_remote_firefox": "nightwatch --config nightwatch.js --env default",
"nightwatch_remote_ie": "nightwatch --config nightwatch.js --env ie", "nightwatch_remote_ie": "nightwatch --config nightwatch.js --env ie",
"nightwatch_remote_parallel": "nightwatch --config nightwatch.js --env ie,safari,chrome,default", "nightwatch_remote_parallel": "nightwatch --config nightwatch.js --env safari,chrome,default",
"nightwatch_remote_safari": "nightwatch --config nightwatch.js --env safari", "nightwatch_remote_safari": "nightwatch --config nightwatch.js --env safari",
"onchange": "onchange build/app.js -- npm run lint", "onchange": "onchange build/app.js -- npm run lint",
"selenium": "selenium-standalone start", "selenium": "selenium-standalone start",
......
...@@ -25,7 +25,11 @@ var css = csjs` ...@@ -25,7 +25,11 @@ var css = csjs`
margin-left: 10px; margin-left: 10px;
} }
` `
function Ethdebugger () {
function Ethdebugger (opts) {
this.opts = opts || {}
if (!this.opts.compilationResult) this.opts.compilationResult = () => { return null }
var self = this var self = this
this.event = new EventManager() this.event = new EventManager()
...@@ -107,6 +111,7 @@ Ethdebugger.prototype.setCompilationResult = function (compilationResult) { ...@@ -107,6 +111,7 @@ Ethdebugger.prototype.setCompilationResult = function (compilationResult) {
} }
Ethdebugger.prototype.debug = function (tx) { Ethdebugger.prototype.debug = function (tx) {
this.setCompilationResult(this.opts.compilationResult())
if (tx instanceof Object) { if (tx instanceof Object) {
this.txBrowser.load(tx.hash) this.txBrowser.load(tx.hash)
} else if (tx instanceof String) { } else if (tx instanceof String) {
...@@ -145,6 +150,7 @@ Ethdebugger.prototype.startDebugging = function (blockNumber, txIndex, tx) { ...@@ -145,6 +150,7 @@ Ethdebugger.prototype.startDebugging = function (blockNumber, txIndex, tx) {
if (this.traceManager.isLoading) { if (this.traceManager.isLoading) {
return return
} }
this.setCompilationResult(this.opts.compilationResult())
this.statusMessage = 'Loading trace...' this.statusMessage = 'Loading trace...'
yo.update(this.view, this.render()) yo.update(this.view, this.render())
console.log('loading trace...') console.log('loading trace...')
......
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