resolving lint errors

pull/1342/head
davidzagi93@gmail.com 3 years ago
parent 9ef31a575a
commit bcc9b8674f
  1. 17
      libs/remix-ui/terminal/src/lib/actions/terminalAction.ts
  2. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -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) => {

@ -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 (

Loading…
Cancel
Save