Skip to content

Commit

Permalink
chore: fix type import
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Oct 25, 2024
1 parent 46caf3e commit fc20680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/message-monitor/src/lib/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { peerIdFromString } from "@libp2p/peer-id";
import type { Waku } from "@waku/interfaces";
import type { IWaku } from "@waku/interfaces";

export const generateRandomNumber = (): number => {
return Math.floor(Math.random() * 1000000);
Expand All @@ -17,7 +17,7 @@ export const sha256 = async (number: number | string): Promise<string> => {
const DEFAULT_EXTRA_DATA = { sdk: "0.0.28" };
export const DEFAULT_EXTRA_DATA_STR = JSON.stringify(DEFAULT_EXTRA_DATA);

export const buildExtraData = async (node: Waku, peerId: string): Promise<string> => {
export const buildExtraData = async (node: IWaku, peerId: string): Promise<string> => {
const peer = await node.libp2p.peerStore.get(peerIdFromString(peerId));
const hasWebsockes = peer
.addresses
Expand Down

0 comments on commit fc20680

Please sign in to comment.