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 b170c48a43..8f0d1d10c9 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -465,6 +465,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { } const checkTxStatus = (tx, type) => { + console.log('inside checkTxStatus') if (tx.status === '0x1' || tx.status === true) { return () } @@ -489,18 +490,19 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { const block = data.receipt ? data.receipt.blockNumber : data.blockNumber || '' const i = data.receipt ? data.transactionIndex : data.transactionIndex const value = val ? typeConversion.toInt(val) : 0 - + console.log('inside context method') if (blockchain.getProvider() === 'vm') { return (
+ {console.log('inside context method return')} [{vm}] - {/*
from: {from}
+
from: {from}
to: {to}
value: {value} wei
data: {input}
logs: {logs}
-
hash: {hash}
*/} +
hash: {hash}
) } else if (blockchain.getProvider() !== 'vm' && data.resolvedData) { @@ -719,12 +721,14 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { const to = tx.to ? tx.to : resolvedData.contractName + '.' + resolvedData.fn const obj = { from, to } const txType = resolvedData ? 'knownTx' : 'unknown' + (tx.isCall ? 'Call' : 'Tx') + console.log('render unknown transaction ') return (
txDetails(event, tx, obj)}> {/* onClick={e => txDetails(e, tx, data, obj)} */} {checkTxStatus(receipt || tx, txType)} {context({ from, to, tx }, props.blockchain)} + { console.log('under context and checkTxStatus')}
debug(event, tx)}>Debug
@@ -747,6 +751,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { transactionCost: tx.transactionCost, executionCost: tx.executionCost }) : null} + { console.log('end')} ) }