From 5332d7acc51df42bd033a7fe08b76e197a517717 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 27 Jun 2018 11:51:29 +0200 Subject: [PATCH] fix terminal api --- src/app/panels/terminal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/panels/terminal.js b/src/app/panels/terminal.js index 7d79fa2d85..07e40b2429 100644 --- a/src/app/panels/terminal.js +++ b/src/app/panels/terminal.js @@ -136,7 +136,7 @@ class Terminal { ` setInterval(() => { - updatePendingTxs(self._api, self._view.pendingTxCount) + updatePendingTxs(self._api.udapp, self._view.pendingTxCount) }, 5000) function listenOnNetwork (ev) { @@ -579,8 +579,8 @@ function domTerminalFeatures (self, scopedCommands) { function blockify (el) { return yo`
${el}
` } // PENDING TX -function updatePendingTxs (api, el) { - var count = Object.keys(api.udapp.pendingTransactions()).length +function updatePendingTxs (udapp, el) { + var count = Object.keys(udapp.pendingTransactions()).length el.innerText = count }