diff --git a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts index 220713054d..60155d835e 100644 --- a/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts +++ b/libs/remix-ui/terminal/src/lib/actions/terminalAction.ts @@ -1,4 +1,3 @@ - export const registerCommandAction = (name, command, activate, dispatch) => { const commands: any = {} const _commands: any = {} @@ -135,22 +134,6 @@ export const initListeningOnNetwork = (props, dispatch) => { }) props.txListener.event.register('newTransaction', (tx, receipt) => { log(props, tx, receipt, dispatch) - registerCommandAction('knownTransaction', function (args, cmds, append) { - var data = args[0] - console.log({ data }) - // 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) - // const result = Object.assign([], tx) - // console.log({ result }) - // scriptRunnerDispatch({ type: 'knownTransaction', payload: { message: result } }) }) const log = async (props, tx, receipt, dispatch) => { @@ -174,7 +157,6 @@ export const initListeningOnNetwork = (props, dispatch) => { props.txListener.event.register('debuggingRequested', async (hash) => { // TODO should probably be in the run module - console.log({ hash }, 'register Call') if (!await props.options.appManager.isActive('debugger')) await props.options.appManager.activatePlugin('debugger') props.thisState.call('menuicons', 'select', 'debugger') props.thisState.call('debugger', 'debug', hash) diff --git a/libs/remix-ui/terminal/src/lib/components/Table.tsx b/libs/remix-ui/terminal/src/lib/components/Table.tsx index 597cb74168..0d25eb727a 100644 --- a/libs/remix-ui/terminal/src/lib/components/Table.tsx +++ b/libs/remix-ui/terminal/src/lib/components/Table.tsx @@ -41,7 +41,7 @@ const showTable = (opts, showTableHash) => { status {`${opts.status} ${msg}`} - ) + {opts.hash ? ( transaction hash {opts.hash} 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 daef837b47..f1a32d18a7 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -552,4 +552,4 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ) } -export default RemixUiTerminal \ No newline at end of file +export default RemixUiTerminal