fix: knownTransaction emited from RunTab

pull/1342/head
davidzagi93@gmail.com 3 years ago
parent 44b3fe6fe0
commit 254942fff9
  1. 17
      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 {

Loading…
Cancel
Save