From 01ce05a7dce6d281e4f8600f8dc5bcc7291900cd Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Tue, 17 Aug 2021 15:14:59 +0100 Subject: [PATCH] fix: knownTransaction emited from RunTab --- .../terminal/src/lib/actions/terminalAction.ts | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts index d032daafc5..4c1dba994d 100644 --- a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts +++ b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts @@ -200,21 +200,8 @@ export const initListeningOnNetwork = (props, dispatch) => { await props.eventsDecoder.parseLogs(tx, resolvedTransaction.contractName, compiledContracts, (error, logs) => { if (!error) { console.log({ tx: tx, receipt: receipt, resolvedData: resolvedTransaction, logs: logs }) - console.log('knownTransaction') - // logKnownTX({ tx: tx, receipt: receipt, resolvedData: resolvedTransaction, logs: logs }) - registerCommandAction('knownTransaction', function (args, cmds, append) { - var data = args[0] - console.log({ data }, 'knownTransaction') - // let el - // if (data.tx.isCall) { - // console.log({ data }) - // // el = renderCall(this, data) - // } else { - // // el = renderKnownTransaction(this, data, blockchain) - // } - // this.seen[data.tx.hash] = el - // append(el) - }, { activate: true }, dispatch) + console.log('knownTransaction dispatch') + dispatch({ type: 'knownTransaction', payload: { message: [{ tx: tx, receipt: receipt }] } }) } }) } else {