From 6f51324d8f65ab43d1dd223b9d83d02fc0a11de9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 2 Oct 2018 14:39:08 -0400 Subject: [PATCH] remove unneded debug method --- src/app/debugger/debugger.js | 9 --------- src/app/debugger/debuggerUI.js | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/app/debugger/debugger.js b/src/app/debugger/debugger.js index 5a132bf361..b29845f830 100644 --- a/src/app/debugger/debugger.js +++ b/src/app/debugger/debugger.js @@ -96,13 +96,4 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) { } } -/** - * Start debugging using Remix - * - * @param {String} txHash - hash of the transaction - */ -Debugger.prototype.debug = function (txHash, cb) { - this.debugger.web3.eth.getTransaction(txHash, cb) -} - module.exports = Debugger diff --git a/src/app/debugger/debuggerUI.js b/src/app/debugger/debuggerUI.js index dad7832542..d35bbe7637 100644 --- a/src/app/debugger/debuggerUI.js +++ b/src/app/debugger/debuggerUI.js @@ -150,7 +150,7 @@ class DebuggerUI { debug (txHash) { const self = this - this.transactionDebugger.debug(txHash, (error, tx) => { + this.transactionDebugger.debugger.web3.eth.getTransaction(txHash, (error, tx) => { if (error) { return console.error("coudn't get txHash: " + error) }