From bcc9b8674fb2c23af4a6bd6e8bb0a6b2fc886a4f Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Fri, 27 Aug 2021 00:29:27 +0100 Subject: [PATCH] resolving lint errors --- .../terminal/src/lib/actions/terminalAction.ts | 17 ----------------- .../terminal/src/lib/remix-ui-terminal.tsx | 2 -- 2 files changed, 19 deletions(-) diff --git a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts index 98a6839b85..da2cbf48b5 100644 --- a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts +++ b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts @@ -138,23 +138,6 @@ export const initListeningOnNetwork = (props, dispatch) => { props.txListener.event.register('newBlock', (block) => { if (!block.transactions || (block.transactions && !block.transactions.length)) { dispatch({ type: 'emptyBlock', payload: { message: 0 } }) - // registerCommandAction('emptyBlock', (args, cmds, append) => { - // const data = args[0] - // // // var el = renderEmptyBlock(this, data) - // // // append(el) - // }, { activate: true }, dispatch) - } else { - registerCommandAction('knownTransaction', function (args) { - var data = args[0] - // let el - // if (data.tx.isCall) { - // // el = renderCall(this, data) - // } else { - // // el = renderKnownTransaction(this, data, blockchain) - // } - // this.seen[data.tx.hash] = el - // append(el) - }, { activate: true }, dispatch) } }) props.txListener.event.register('knownTransaction', (block) => { diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx index 44013ad2ff..6d28cccfe0 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -144,7 +144,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { if (cb) cb() return } - newstate.commands.script(content) } @@ -783,7 +782,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { const to = resolvedData.contractName + '.' + resolvedData.fn const from = tx.from ? tx.from : ' - ' const input = tx.input ? helper.shortenHexData(tx.input) : '' - const obj = { from, to } const txType = 'call' return (