Skip to content

Commit

Permalink
feat: websocket rpc provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Dec 27, 2023
1 parent e49f239 commit 6179382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/chainContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class ChainContext {
): Promise<ChainContext> {
const { rpc, deploymentBlock } = options;

const provider = new providers.JsonRpcProvider(rpc);
const provider = new providers.WebSocketProvider(rpc);
const chainId = (await provider.getNetwork()).chainId;

const registry = await Registry.load(
Expand Down

0 comments on commit 6179382

Please sign in to comment.