Fix proxy/delegatecall scenarios
This commit is contained in:
parent
7f15a12f4a
commit
4ec5fb7681
@ -199,10 +199,15 @@ export const useTransactionDescription = (
|
|||||||
|
|
||||||
const abi = metadata.output.abi;
|
const abi = metadata.output.abi;
|
||||||
const intf = new Interface(abi as any);
|
const intf = new Interface(abi as any);
|
||||||
|
try {
|
||||||
return intf.parseTransaction({
|
return intf.parseTransaction({
|
||||||
data: txData.data,
|
data: txData.data,
|
||||||
value: txData.value,
|
value: txData.value,
|
||||||
});
|
});
|
||||||
|
} catch (err) {
|
||||||
|
console.warn("Couldn't find function signature", err);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}, [metadata, txData]);
|
}, [metadata, txData]);
|
||||||
|
|
||||||
return txDesc;
|
return txDesc;
|
||||||
|
Loading…
Reference in New Issue
Block a user