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

updates after rebasing

parent 85ab2a97
export const registerCommandAction = (name, command, activate, dispatch) => { export const registerCommandAction = (name, command, activate, dispatch) => {
const commands: any = {} const commands: any = {}
const _commands: any = {} const _commands: any = {}
...@@ -135,22 +134,6 @@ export const initListeningOnNetwork = (props, dispatch) => { ...@@ -135,22 +134,6 @@ export const initListeningOnNetwork = (props, dispatch) => {
}) })
props.txListener.event.register('newTransaction', (tx, receipt) => { props.txListener.event.register('newTransaction', (tx, receipt) => {
log(props, tx, receipt, dispatch) 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) => { const log = async (props, tx, receipt, dispatch) => {
...@@ -174,7 +157,6 @@ export const initListeningOnNetwork = (props, dispatch) => { ...@@ -174,7 +157,6 @@ export const initListeningOnNetwork = (props, dispatch) => {
props.txListener.event.register('debuggingRequested', async (hash) => { props.txListener.event.register('debuggingRequested', async (hash) => {
// TODO should probably be in the run module // 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') if (!await props.options.appManager.isActive('debugger')) await props.options.appManager.activatePlugin('debugger')
props.thisState.call('menuicons', 'select', 'debugger') props.thisState.call('menuicons', 'select', 'debugger')
props.thisState.call('debugger', 'debug', hash) props.thisState.call('debugger', 'debug', hash)
......
...@@ -41,7 +41,7 @@ const showTable = (opts, showTableHash) => { ...@@ -41,7 +41,7 @@ const showTable = (opts, showTableHash) => {
<tr className='tr'> <tr className='tr'>
<td className='td' data-shared={`key_${opts.hash}`}>status</td> <td className='td' data-shared={`key_${opts.hash}`}>status</td>
<td className='td' data-id={`txLoggerTableStatus${opts.hash}`} data-shared={`pair_${opts.hash}`}>{`${opts.status} ${msg}`}</td> <td className='td' data-id={`txLoggerTableStatus${opts.hash}`} data-shared={`pair_${opts.hash}`}>{`${opts.status} ${msg}`}</td>
</tr>) </tr>
{opts.hash ? (<tr className='tr'> {opts.hash ? (<tr className='tr'>
<td className='td' data-shared={`key_${opts.hash}`}>transaction hash</td> <td className='td' data-shared={`key_${opts.hash}`}>transaction hash</td>
<td className='td' data-id={`txLoggerTableHash${opts.hash}`} data-shared={`pair_${opts.hash}`}>{opts.hash} <td className='td' data-id={`txLoggerTableHash${opts.hash}`} data-shared={`pair_${opts.hash}`}>{opts.hash}
......
...@@ -552,4 +552,4 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ...@@ -552,4 +552,4 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
) )
} }
export default RemixUiTerminal export default RemixUiTerminal
\ No newline at end of file
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