Commit 20859383 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

fix web3 obj

parent 5b97c656
'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
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