fix issue 3890

pull/3918/head
drafish 1 year ago committed by Aniket
parent e6715ab726
commit 35f4b50fcd
  1. 4
      libs/remix-ui/terminal/src/lib/components/RenderKnownTransactions.tsx
  2. 30
      libs/remix-ui/terminal/src/lib/components/Table.tsx

@ -40,7 +40,9 @@ const RenderKnownTransactions = ({ tx, receipt, resolvedData, logs, index, plugi
hash: tx.hash, hash: tx.hash,
status: receipt !== null ? receipt.status : null, status: receipt !== null ? receipt.status : null,
isCall: tx.isCall, isCall: tx.isCall,
contractAddress: tx.contractAddress, contractAddress: receipt.contractAddress,
blockHash: tx.blockHash,
blockNumber: tx.blockNumber,
data: tx, data: tx,
from, from,
to, to,

@ -68,6 +68,36 @@ const showTable = (opts, showTableHash) => {
</td> </td>
</tr> </tr>
) : null} ) : null}
{opts.blockHash ? (
<tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>
block hash
</td>
<td
className="remix_ui_terminal_td"
data-id={`txLoggerTableContractAddress${opts.hash}`}
data-shared={`pair_${opts.hash}`}
>
{opts.blockHash}
<CopyToClipboard content={opts.blockHash} />
</td>
</tr>
) : null}
{opts.blockNumber ? (
<tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>
block number
</td>
<td
className="remix_ui_terminal_td"
data-id={`txLoggerTableContractAddress${opts.hash}`}
data-shared={`pair_${opts.hash}`}
>
{opts.blockNumber}
<CopyToClipboard content={opts.blockNumber} />
</td>
</tr>
) : null}
{opts.contractAddress ? ( {opts.contractAddress ? (
<tr className="remix_ui_terminal_tr"> <tr className="remix_ui_terminal_tr">
<td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}> <td className="remix_ui_terminal_td" data-shared={`key_${opts.hash}`}>

Loading…
Cancel
Save