diff --git a/examples/web-chat/src/config.ts b/examples/web-chat/src/config.ts index a0f956a..a63eb0d 100644 --- a/examples/web-chat/src/config.ts +++ b/examples/web-chat/src/config.ts @@ -2,10 +2,6 @@ import { Protocols } from "@waku/interfaces"; export const CONTENT_TOPIC = "/toy-chat/2/huilong/proto"; -const PUBLIC_KEY = "AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM"; -const FQDN = "test.waku.nodes.status.im"; -export const ENR_TREE = `enrtree://${PUBLIC_KEY}@${FQDN}`; - export const PROTOCOLS = [ Protocols.Filter, Protocols.Store, diff --git a/examples/web-chat/src/index.tsx b/examples/web-chat/src/index.tsx index c7317df..44245dd 100644 --- a/examples/web-chat/src/index.tsx +++ b/examples/web-chat/src/index.tsx @@ -2,17 +2,17 @@ import React from "react"; import ReactDOM from "react-dom"; import { ThemeProvider } from "@livechat/ui-kit"; import { LightNodeProvider, ContentPairProvider } from "@waku/react"; -import { wakuDnsDiscovery } from "@waku/dns-discovery"; +import { wakuDnsDiscovery, enrTree } from "@waku/dns-discovery"; import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange"; import "./index.css"; import App from "./App"; -import { ENR_TREE, CONTENT_TOPIC, PROTOCOLS } from "./config"; +import { CONTENT_TOPIC, PROTOCOLS } from "./config"; const NODE_OPTIONS = { libp2p: { peerDiscovery: [ - wakuDnsDiscovery([ENR_TREE], { + wakuDnsDiscovery([enrTree.TEST], { store: 1, filter: 2, lightPush: 2,