diff --git a/typescript/sdk/src/router/HyperlaneRouterChecker.ts b/typescript/sdk/src/router/HyperlaneRouterChecker.ts index e514c8522e..7a8c5e3f1d 100644 --- a/typescript/sdk/src/router/HyperlaneRouterChecker.ts +++ b/typescript/sdk/src/router/HyperlaneRouterChecker.ts @@ -66,12 +66,7 @@ export class HyperlaneRouterChecker< }); } - if (config.hook) { - if (typeof config.hook !== 'string') - return this.logger.info( - `Hook objects not supported in router checker for HookConfig: ${config.hook}`, - ); - + if (config.hook && typeof config.hook === 'string') { const hook = await router.hook(); if (!eqAddress(hook, config.hook as string)) { this.addViolation({