Skip to content

Commit

Permalink
refactor: rename STATIC_ISM_TYPE to STATIC_ISM_TYPES for consistency …
Browse files Browse the repository at this point in the history
…in ISM type definitions
  • Loading branch information
ljankovic-txfusion committed Jan 22, 2025
1 parent 4befd65 commit 3e3c6f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion typescript/sdk/src/ism/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const MUTABLE_ISM_TYPE = [
];

// ISM types that require static deployment
export const STATIC_ISM_TYPE = [
export const STATIC_ISM_TYPES = [
IsmType.AGGREGATION,
IsmType.MERKLE_ROOT_MULTISIG,
IsmType.MESSAGE_ID_MULTISIG,
Expand Down
4 changes: 2 additions & 2 deletions typescript/sdk/src/ism/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
ModuleType,
RoutingIsmConfig,
RoutingIsmDelta,
STATIC_ISM_TYPE,
STATIC_ISM_TYPES,
ismTypeToModuleType,
} from './types.js';

Expand Down Expand Up @@ -566,7 +566,7 @@ export function isIsmCompatible({
ismType: IsmType;
}): boolean {
// Skip compatibility check for non-static ISMs as they're always supported
if (!STATIC_ISM_TYPE.includes(ismType)) return true;
if (!STATIC_ISM_TYPES.includes(ismType)) return true;

return isStaticDeploymentSupported(chainTechnicalStack);
}

0 comments on commit 3e3c6f5

Please sign in to comment.