From a0896c59a325b93e7546bfad440ce40bbb6442ec Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 18 Sep 2021 19:42:45 -0300 Subject: [PATCH] Fix support for different log emitters --- src/transaction/Logs.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/transaction/Logs.tsx b/src/transaction/Logs.tsx index d4233b7..62196fa 100644 --- a/src/transaction/Logs.tsx +++ b/src/transaction/Logs.tsx @@ -19,10 +19,12 @@ const Logs: React.FC = ({ txData, metadata }) => { const abi = metadata.output.abi; const intf = new Interface(abi as any); return txData.confirmedData?.logs.map((l) => - intf.parseLog({ - topics: l.topics, - data: l.data, - }) + l.address === txData.to + ? intf.parseLog({ + topics: l.topics, + data: l.data, + }) + : undefined ); }, [metadata, txData]);