resolving lint errors

pull/5370/head
davidzagi93@gmail.com 3 years ago
parent 204a8482ae
commit daf533f076
  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) => {

@ -136,7 +136,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
if (cb) cb()
return
}
newstate.commands.script(content)
}
@ -881,7 +880,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