From 03032a4cf94a182bdcc168ceb45a06c9d46a9e0f Mon Sep 17 00:00:00 2001 From: Ben Baryo Date: Mon, 9 Dec 2024 14:21:33 +0200 Subject: [PATCH] Add missing optional chaining operator --- src/modules/safe/resolveProxyCalls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/safe/resolveProxyCalls.js b/src/modules/safe/resolveProxyCalls.js index f0e51eb..a5b27f7 100644 --- a/src/modules/safe/resolveProxyCalls.js +++ b/src/modules/safe/resolveProxyCalls.js @@ -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' &&