fix web3 obj

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent 5b97c65661
commit 20859383b1
  1. 5
      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

Loading…
Cancel
Save