From bb0e68f7ab1959201020eadaa164721c9e459878 Mon Sep 17 00:00:00 2001 From: Yorke Rhodes Date: Sun, 12 May 2024 09:47:50 -0400 Subject: [PATCH] Fix build --- typescript/sdk/src/ism/metadata/aggregation.ts | 9 ++++----- yarn.lock | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/typescript/sdk/src/ism/metadata/aggregation.ts b/typescript/sdk/src/ism/metadata/aggregation.ts index 7a298090e8..57196fddb2 100644 --- a/typescript/sdk/src/ism/metadata/aggregation.ts +++ b/typescript/sdk/src/ism/metadata/aggregation.ts @@ -65,11 +65,10 @@ export class AggregationIsmMetadataBuilder r.status === 'fulfilled' ? r.value ?? null : null, ); const included = submoduleMetadata.filter((m) => m !== null).length; - if (included < context.ism.threshold) { - throw new Error( - `Only built ${included} of ${context.ism.threshold} required modules`, - ); - } + assert( + included < context.ism.threshold, + `Only built ${included} of ${context.ism.threshold} required modules`, + ); return AggregationIsmMetadataBuilder.encode({ ...context.ism, diff --git a/yarn.lock b/yarn.lock index 9cfee7cc2b..38072e6019 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5231,7 +5231,6 @@ __metadata: resolution: "@hyperlane-xyz/utils@workspace:typescript/utils" dependencies: "@cosmjs/encoding": "npm:^0.31.3" - "@ethersproject/bytes": "npm:^5.7.0" "@solana/web3.js": "npm:^1.78.0" "@types/mocha": "npm:^10.0.1" bignumber.js: "npm:^9.1.1"