Commit 1b0b8f7e authored by davidzagi93@gmail.com's avatar davidzagi93@gmail.com

change logs array to string for test purpose

parent dc35a7f0
...@@ -499,7 +499,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ...@@ -499,7 +499,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
<div className='txItem'><span className='txItemTitle'>to:</span> {to}</div> <div className='txItem'><span className='txItemTitle'>to:</span> {to}</div>
<div className='txItem'><span className='txItemTitle'>value:</span> {value} wei</div> <div className='txItem'><span className='txItemTitle'>value:</span> {value} wei</div>
<div className='txItem'><span className='txItemTitle'>data:</span> {input}</div> <div className='txItem'><span className='txItemTitle'>data:</span> {input}</div>
<div className='txItem'><span className='txItemTitle'>logs:</span> {logs}</div> <div className='txItem'><span className='txItemTitle'>logs:</span> {logs.toString()}</div>
<div className='txItem'><span className='txItemTitle'>hash:</span> {hash}</div> <div className='txItem'><span className='txItemTitle'>hash:</span> {hash}</div>
</span> </span>
</div>) </div>)
...@@ -512,7 +512,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ...@@ -512,7 +512,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
<div className='txItem'><span className='txItemTitle'>to:</span> {to}</div> <div className='txItem'><span className='txItemTitle'>to:</span> {to}</div>
<div className='txItem'><span className='txItemTitle'>value:</span> {value} wei</div> <div className='txItem'><span className='txItemTitle'>value:</span> {value} wei</div>
<div className='txItem'><span className='txItemTitle'>data:</span> {input}</div> <div className='txItem'><span className='txItemTitle'>data:</span> {input}</div>
<div className='txItem'><span className='txItemTitle'>logs:</span> {logs}</div> <div className='txItem'><span className='txItemTitle'>logs:</span> {logs.toString()}</div>
<div className='txItem'><span className='txItemTitle'>hash:</span> {hash}</div> <div className='txItem'><span className='txItemTitle'>hash:</span> {hash}</div>
</span> </span>
</div>) </div>)
...@@ -718,7 +718,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { ...@@ -718,7 +718,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const from = tx.from const from = tx.from
const to = tx.to ? tx.to : resolvedData.contractName + '.' + resolvedData.fn const to = tx.to ? tx.to : resolvedData.contractName + '.' + resolvedData.fn
const obj = { from, to } const obj = { from, to }
const txType = 'unknown' + (tx.isCall ? 'Call' : 'Tx') const txType = resolvedData ? 'knownTx' : 'unknown' + (tx.isCall ? 'Call' : 'Tx')
return ( return (
<span id={`tx${tx.hash}`} key={index}> <span id={`tx${tx.hash}`} key={index}>
<div className="log" onClick={(event) => txDetails(event, tx, obj)}> <div className="log" onClick={(event) => txDetails(event, tx, obj)}>
......
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