From c7c5c7df9e497aa640e07eb1c77dbd9f3bc0b7f2 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 4 Jul 2018 16:04:24 +0200 Subject: [PATCH] remove unneeded local var --- src/app.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/app.js b/src/app.js index e0cba406b7..394f7f3b5f 100644 --- a/src/app.js +++ b/src/app.js @@ -407,15 +407,14 @@ Please make a backup of your contracts and start using http://remix.ethereum.org // ----------------- Tx listener ----------------- var transactionReceiptResolver = new TransactionReceiptResolver() - var compiledContracts = function () { - if (self._components.compiler.lastCompilationResult && self._components.compiler.lastCompilationResult.data) { - return self._components.compiler.lastCompilationResult.data.contracts - } - return null - } var txlistener = new Txlistener({ api: { - contracts: compiledContracts, + contracts: function () { + if (self._components.compiler.lastCompilationResult && self._components.compiler.lastCompilationResult.data) { + return self._components.compiler.lastCompilationResult.data.contracts + } + return null + }, resolveReceipt: function (tx, cb) { transactionReceiptResolver.resolve(tx, cb) }