make linter happy

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent ca47914d6a
commit 93a3e8a9d3
  1. 3
      src/app/debugger/debugger.js
  2. 11
      src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js
  3. 4
      src/app/debugger/remix-debugger/src/ui/TxBrowser.js

@ -56,7 +56,6 @@ function Debugger (container, sourceHighlighter, localRegistry) {
}) })
executionContext.event.register('contextChanged', this, function (context) { executionContext.event.register('contextChanged', this, function (context) {
debugger;
self.switchProvider(context) self.switchProvider(context)
}) })
@ -113,7 +112,6 @@ Debugger.prototype.debug = function (txHash) {
* @param {Object} obj - provider * @param {Object} obj - provider
*/ */
Debugger.prototype.addProvider = function (type, obj) { Debugger.prototype.addProvider = function (type, obj) {
debugger;
this.debugger.addProvider(type, obj) this.debugger.addProvider(type, obj)
} }
@ -123,7 +121,6 @@ Debugger.prototype.addProvider = function (type, obj) {
* @param {String} type - type/name of the provider to use * @param {String} type - type/name of the provider to use
*/ */
Debugger.prototype.switchProvider = function (type) { Debugger.prototype.switchProvider = function (type) {
debugger;
this.debugger.switchProvider(type) this.debugger.switchProvider(type)
} }

@ -49,13 +49,12 @@ function EthdebuggerUI (opts) {
}) })
executionContext.event.register('contextChanged', this, function () { executionContext.event.register('contextChanged', this, function () {
console.dir("== contextChanged!!");
self.updateWeb3Reference() self.updateWeb3Reference()
}); })
setTimeout(function () { setTimeout(function () {
self.updateWeb3Reference() self.updateWeb3Reference()
}, 10000); }, 10000)
this.txBrowser = new TxBrowser(this) this.txBrowser = new TxBrowser(this)
this.txBrowser.event.register('newTxLoading', this, function () { this.txBrowser.event.register('newTxLoading', this, function () {
@ -124,16 +123,13 @@ EthdebuggerUI.prototype.addProvider = function (type, obj) {
} }
EthdebuggerUI.prototype.updateWeb3Reference = function () { EthdebuggerUI.prototype.updateWeb3Reference = function () {
debugger;
if (!this.txBrowser) return if (!this.txBrowser) return
this.txBrowser.web3 = this.debugger.web3 this.txBrowser.web3 = this.debugger.web3
} }
EthdebuggerUI.prototype.switchProvider = function (type) { EthdebuggerUI.prototype.switchProvider = function (type) {
debugger;
var self = this var self = this
this.web3Providers.get(type, function (error, obj) { this.web3Providers.get(type, function (error, obj) {
debugger;
if (error) { if (error) {
console.log('provider ' + type + ' not defined') console.log('provider ' + type + ' not defined')
} else { } else {
@ -141,7 +137,6 @@ EthdebuggerUI.prototype.switchProvider = function (type) {
// self.setManagers() // self.setManagers()
self.updateWeb3Reference() self.updateWeb3Reference()
executionContext.detectNetwork((error, network) => { executionContext.detectNetwork((error, network) => {
debugger;
if (error || !network) { if (error || !network) {
self.web3Debug = obj self.web3Debug = obj
self.web3 = obj self.web3 = obj
@ -202,7 +197,7 @@ EthdebuggerUI.prototype.stepChanged = function (stepIndex) {
} }
EthdebuggerUI.prototype.startDebugging = function (blockNumber, txIndex, tx) { EthdebuggerUI.prototype.startDebugging = function (blockNumber, txIndex, tx) {
const self = this; const self = this
console.dir('startDebugging') console.dir('startDebugging')
console.dir(arguments) console.dir(arguments)
if (this.debugger.traceManager.isLoading) { if (this.debugger.traceManager.isLoading) {

@ -81,11 +81,11 @@ TxBrowser.prototype.submit = function () {
try { try {
var self = this var self = this
if (this.txNumber.indexOf('0x') !== -1) { if (this.txNumber.indexOf('0x') !== -1) {
global.web3.eth.getTransaction(this.txNumber, function (error, result) { self.web3.eth.getTransaction(this.txNumber, function (error, result) {
self.update(error, result) self.update(error, result)
}) })
} else { } else {
global.web3.eth.getTransactionFromBlock(this.blockNumber, this.txNumber, function (error, result) { self.web3.eth.getTransactionFromBlock(this.blockNumber, this.txNumber, function (error, result) {
self.update(error, result) self.update(error, result)
}) })
} }

Loading…
Cancel
Save