Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed May 12, 2024
1 parent 687108c commit bb0e68f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions typescript/sdk/src/ism/metadata/aggregation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bb0e68f

Please sign in to comment.