Skip to content

Commit

Permalink
Add missing optional chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBaryoPX committed Dec 9, 2024
1 parent fb13ccb commit 03032a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/safe/resolveProxyCalls.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function resolveProxyCalls(arb, candidateFilter = () => true) {
];
for (let i = 0; i < relevantNodes.length; i++) {
const n = relevantNodes[i];
if (n?.body?.body?.[0].type === 'ReturnStatement' &&
if (n?.body?.body?.[0]?.type === 'ReturnStatement' &&
n.body.body[0].argument?.type === 'CallExpression' &&
n.body.body[0].argument.arguments?.length === n.params?.length &&
n.body.body[0].argument.callee.type === 'Identifier' &&
Expand Down

0 comments on commit 03032a4

Please sign in to comment.