Get definitive network from InfuraProvider when using InfuraWebSocketProvider.
This commit is contained in:
parent
29beb93ea7
commit
38e32d8214
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user