From d9ca20aed46c3667168135af16c77529933c8d5a Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Wed, 15 Nov 2023 18:46:42 +0000 Subject: [PATCH] fix: web3 issue in tests --- js-packages/tests/eth/util/playgrounds/unique.dev.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js-packages/tests/eth/util/playgrounds/unique.dev.ts b/js-packages/tests/eth/util/playgrounds/unique.dev.ts index 3b1f015699..cf248ff7ec 100644 --- a/js-packages/tests/eth/util/playgrounds/unique.dev.ts +++ b/js-packages/tests/eth/util/playgrounds/unique.dev.ts @@ -590,8 +590,8 @@ export class EthUniqueHelper extends DevUniqueHelper { connectWeb3(wsEndpoint: string) { if(this.web3 !== null) return; - this.web3Provider = new (web3 as any).providers.WebsocketProvider(wsEndpoint); - this.web3 = new (web3 as any)(this.web3Provider); + this.web3Provider = new web3.default.providers.WebsocketProvider(wsEndpoint); + this.web3 = new web3.default(this.web3Provider); } override async disconnect() {