Skip to content

Commit

Permalink
chore: Fix Checker for hooks (#5006)
Browse files Browse the repository at this point in the history
### Description
Fixes hook checker in Infra

### Backward compatibility
Yes

### Testing
Manual
  • Loading branch information
ltyu authored Dec 13, 2024
1 parent 82cebab commit 4779a19
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions typescript/sdk/src/router/HyperlaneRouterChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 4779a19

Please sign in to comment.