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 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]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue