Fix support for different log emitters

This commit is contained in:
Willian Mitsuda 2021-09-18 19:42:45 -03:00
parent 6008eb102d
commit a0896c59a3
1 changed files with 6 additions and 4 deletions

View File

@ -19,10 +19,12 @@ const Logs: React.FC<LogsProps> = ({ txData, metadata }) => {
const abi = metadata.output.abi; const abi = metadata.output.abi;
const intf = new Interface(abi as any); const intf = new Interface(abi as any);
return txData.confirmedData?.logs.map((l) => return txData.confirmedData?.logs.map((l) =>
intf.parseLog({ l.address === txData.to
topics: l.topics, ? intf.parseLog({
data: l.data, topics: l.topics,
}) data: l.data,
})
: undefined
); );
}, [metadata, txData]); }, [metadata, txData]);