Skip to content

Commit

Permalink
fix: import of base_protocol and networkConfig type guard (#2109)
Browse files Browse the repository at this point in the history
* bug: fix import

* fix type guard
  • Loading branch information
weboko committed Aug 23, 2024
1 parent c33844e commit 8f56d90
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/sdk/src/protocols/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { messageHash } from "@waku/message-hash";
import { ensurePubsubTopicIsConfigured, isDefined, Logger } from "@waku/utils";

import { BaseProtocolSDK } from "./base_protocol";
import { BaseProtocolSDK } from "./base_protocol.js";

const DEFAULT_NUM_PEERS = 1;

Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/common/sharding/type_guards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export function isStaticSharding(
export function isAutoSharding(
config: NonNullable<ProtocolCreateOptions["networkConfig"]>
): config is ContentTopicInfo {
return "contentTopics" in config && "clusterId" in config;
return "contentTopics" in config;
}

0 comments on commit 8f56d90

Please sign in to comment.