import React from "react"; import { LogDescription } from "@ethersproject/abi"; import AddressHighlighter from "../components/AddressHighlighter"; import DecoratedAddressLink from "../components/DecoratedAddressLink"; import Copy from "../components/Copy"; import { TransactionData } from "../types"; type DecodedLogProps = { txData: TransactionData; logDesc: LogDescription; }; const DecodedLog: React.FC = ({ txData, logDesc }) => ( {logDesc.args.map((r, i) => ( ))}
param (index) type value
{logDesc.eventFragment.inputs[i].name}{" "} ({i}) {logDesc.eventFragment.inputs[i].type} {logDesc.eventFragment.inputs[i].type === "address" ? (
) : ( r.toString() )}
); export default React.memo(DecodedLog);