Fix support for different log emitters
This commit is contained in:
parent
6008eb102d
commit
a0896c59a3
|
@ -19,10 +19,12 @@ const Logs: React.FC<LogsProps> = ({ txData, metadata }) => {
|
|||
const abi = metadata.output.abi;
|
||||
const intf = new Interface(abi as any);
|
||||
return txData.confirmedData?.logs.map((l) =>
|
||||
intf.parseLog({
|
||||
l.address === txData.to
|
||||
? intf.parseLog({
|
||||
topics: l.topics,
|
||||
data: l.data,
|
||||
})
|
||||
: undefined
|
||||
);
|
||||
}, [metadata, txData]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue