Commit bcc9b867 authored by davidzagi93@gmail.com's avatar davidzagi93@gmail.com

resolving lint errors

parent 9ef31a57
...@@ -138,23 +138,6 @@ export const initListeningOnNetwork = (props, dispatch) => { ...@@ -138,23 +138,6 @@ export const initListeningOnNetwork = (props, dispatch) => {
props.txListener.event.register('newBlock', (block) => { props.txListener.event.register('newBlock', (block) => {
if (!block.transactions || (block.transactions && !block.transactions.length)) { if (!block.transactions || (block.transactions && !block.transactions.length)) {
dispatch({ type: 'emptyBlock', payload: { message: 0 } }) 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) => { props.txListener.event.register('knownTransaction', (block) => {
......
...@@ -144,7 +144,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ...@@ -144,7 +144,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
if (cb) cb() if (cb) cb()
return return
} }
newstate.commands.script(content) newstate.commands.script(content)
} }
...@@ -783,7 +782,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ...@@ -783,7 +782,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const to = resolvedData.contractName + '.' + resolvedData.fn const to = resolvedData.contractName + '.' + resolvedData.fn
const from = tx.from ? tx.from : ' - ' const from = tx.from ? tx.from : ' - '
const input = tx.input ? helper.shortenHexData(tx.input) : '' const input = tx.input ? helper.shortenHexData(tx.input) : ''
const obj = { from, to }
const txType = 'call' const txType = 'call'
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment