From 887616cb60242dc23d17285b6d86bc96dad348cf Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Fri, 2 Feb 2024 12:42:34 +1300 Subject: [PATCH] refactor: Replace viem sepolia default http by Ankr rpc. --- src/config.ts | 2 +- tests/processor.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index fbfa201..66d1a79 100644 --- a/src/config.ts +++ b/src/config.ts @@ -64,7 +64,7 @@ export const getConfig = (chainId: number): ProcessorConfig => { rpcEndpoint: { url: process.env[RPC_URL] ?? - sepolia.rpcUrls.default.http[0], + 'https://rpc.ankr.com/eth_sepolia', }, }, from: Math.min( diff --git a/tests/processor.test.ts b/tests/processor.test.ts index a362215..c0f7ee1 100644 --- a/tests/processor.test.ts +++ b/tests/processor.test.ts @@ -65,7 +65,7 @@ describe('Processor creation', () => { }); expect(processor.setRpcEndpoint).toHaveBeenCalledWith({ - url: 'https://rpc.sepolia.org', + url: 'https://rpc.ankr.com/eth_sepolia', }); expect(processor.setFinalityConfirmation).toHaveBeenCalledWith(10);