From 20859383b16050665e0ca730afa3447df253d099 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 31 Jul 2018 13:54:25 -0400 Subject: [PATCH] fix web3 obj --- src/app/debugger/debugger.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/debugger/debugger.js b/src/app/debugger/debugger.js index 7b6890c985..96f6d06ec0 100644 --- a/src/app/debugger/debugger.js +++ b/src/app/debugger/debugger.js @@ -1,5 +1,4 @@ 'use strict' - var Ethdebugger = require('./remix-debugger/src/ui/Ethdebugger') var remixLib = require('remix-lib') var executionContext = require('../../execution-context') @@ -90,7 +89,7 @@ function Debugger (container, sourceHighlighter, localRegistry) { */ Debugger.prototype.debug = function (txHash) { var self = this - this.debugger.web3().eth.getTransaction(txHash, function (error, tx) { + this.debugger.web3.eth.getTransaction(txHash, function (error, tx) { if (!error) { self.debugger.debug(tx) } @@ -120,7 +119,7 @@ Debugger.prototype.switchProvider = function (type) { * get the current provider */ Debugger.prototype.web3 = function (type) { - return this.debugger.web3() + return this.debugger.web3 } module.exports = Debugger