Skip to content

Commit 1a188b5

Browse files
constructor is expecting undefined, not null (#502)
1 parent f5f814a commit 1a188b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/alchemy-websocket-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class AlchemyWebSocketProvider
123123
// ethers. This allows the parent super constructor in JsonRpcProvider to
124124
// correctly set the network.
125125
const ethersNetwork = EthersNetwork[alchemyNetwork];
126-
super(ws as any, ethersNetwork);
126+
super(ws as any, ethersNetwork ?? undefined);
127127
this.apiKey = apiKey;
128128

129129
// Start heartbeat and backfiller for the websocket connection.

0 commit comments

Comments
 (0)