From d08595518137147708e3f0dffc268b850a0f3b80 Mon Sep 17 00:00:00 2001 From: Xaroz Date: Fri, 13 Dec 2024 19:28:22 -0600 Subject: [PATCH] fix: extra parenthesis --- src/features/debugger/debugMessage.ts | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/features/debugger/debugMessage.ts b/src/features/debugger/debugMessage.ts index e1bfb31..4c1ed70 100644 --- a/src/features/debugger/debugMessage.ts +++ b/src/features/debugger/debugMessage.ts @@ -194,18 +194,17 @@ async function debugMessageDelivery( destProvider, recipient, ); - const bytecodeHasHandle = await tryCheckBytecodeHandle( - destProvider, - proxyImplementationContract || recipient, - ) - if (!bytecodeHasHandle) { - logger.info('Bytecode does not have function matching handle sig'); - return { - status: MessageDebugStatus.RecipientNotHandler, - description: `Recipient contract should have handle function of signature: ${HANDLE_FUNCTION_SIG}. Check that recipient is not a proxy. Error: ${errorReason}`, - calldataDetails, - }; - } + const bytecodeHasHandle = await tryCheckBytecodeHandle( + destProvider, + proxyImplementationContract || recipient, + ); + if (!bytecodeHasHandle) { + logger.info('Bytecode does not have function matching handle sig'); + return { + status: MessageDebugStatus.RecipientNotHandler, + description: `Recipient contract should have handle function of signature: ${HANDLE_FUNCTION_SIG}. Check that recipient is not a proxy. Error: ${errorReason}`, + calldataDetails, + }; } const icaCallErr = await tryDebugIcaMsg(sender, recipient, body, originDomain, destProvider);