Skip to content

Commit

Permalink
fix: web3 issue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigoriy Simonov authored and CertainLach committed Nov 16, 2023
1 parent 3976407 commit d9ca20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js-packages/tests/eth/util/playgrounds/unique.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d9ca20a

Please sign in to comment.