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