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