fix: replace any with libp2p options

This commit is contained in:
Arseniy Klempner 2025-10-03 20:09:59 -07:00
parent 69192ddb9d
commit 5feb637b8d
No known key found for this signature in database
GPG Key ID: 51653F18863BD24B
3 changed files with 3 additions and 17 deletions

View File

@ -37,16 +37,6 @@ You can track progress on the [project board](https://github.com/orgs/waku-org/p
See [CONTRIBUTING.md](https://github.com/waku-org/js-waku/blob/master/CONTRIBUTING.md).
## Dockerized browser tests
Build and run the dockerized Playwright tests from `packages/browser-tests`:
```bash
cd packages/browser-tests
npm run docker:build
HEADLESS_USE_CDN_IN_DOCKER=0 npx playwright test tests/docker-server.spec.ts
```
## License
Licensed and distributed under either of

View File

@ -1,7 +1,7 @@
import { Browser, chromium, Page } from "@playwright/test";
import { Logger } from "@waku/utils";
const log = new Logger("browser");
const log = new Logger("browser-test");
let browser: Browser | undefined;
let page: Page | undefined;

View File

@ -12,6 +12,7 @@ import {
ShardId,
StaticSharding,
ShardInfo,
CreateLibp2pOptions,
} from "@waku/interfaces";
import { bootstrap } from "@libp2p/bootstrap";
import { EnrDecoder, TransportProtocol } from "@waku/enr";
@ -292,12 +293,7 @@ export class WakuHeadless {
log.warn("ignore previous waku stop error");
}
// if (options.networkConfig) {
// this.networkConfig = options.networkConfig;
// log.info("Network config on createWakuNode:", this.networkConfig);
// }
let libp2pConfig: any = {
let libp2pConfig: CreateLibp2pOptions = {
...options.libp2p,
filterMultiaddrs: false,
};