Skip to content

Commit

Permalink
Get definitive network from InfuraProvider when using InfuraWebSocket…
Browse files Browse the repository at this point in the history
…Provider.
  • Loading branch information
ricmoo committed Apr 17, 2024
1 parent 29beb93 commit 38e32d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/providers/provider-infura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class InfuraWebSocketProvider extends WebSocketProvider implements Commun
"UNSUPPORTED_OPERATION", { operation: "InfuraProvider.getWebSocketProvider()" });

const url = req.url.replace(/^http/i, "ws").replace("/v3/", "/ws/v3/");
super(url, network);
super(url, provider._network);

defineProperties<InfuraWebSocketProvider>(this, {
projectId: provider.projectId,
Expand Down

0 comments on commit 38e32d8

Please sign in to comment.