From 86368be75dc2d79c1bed435b780842c4b0616e1b Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:06:24 +0100 Subject: [PATCH] fix(relayer): Respect chainId input argument in ethers listener (#1934) --- src/libexec/RelayerSpokePoolIndexer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexec/RelayerSpokePoolIndexer.ts b/src/libexec/RelayerSpokePoolIndexer.ts index cca604523..618413037 100644 --- a/src/libexec/RelayerSpokePoolIndexer.ts +++ b/src/libexec/RelayerSpokePoolIndexer.ts @@ -122,7 +122,7 @@ async function run(argv: string[]): Promise { }; const args = minimist(argv, minimistOpts); - const { chainId: chainId, lookback, relayer = null, blockrange: maxBlockRange = 10_000 } = args; + const { chainid: chainId, lookback, relayer = null, blockrange: maxBlockRange = 10_000 } = args; assert(Number.isInteger(chainId), "chainId must be numeric "); assert(Number.isInteger(maxBlockRange), "maxBlockRange must be numeric"); assert(!isDefined(relayer) || ethersUtils.isAddress(relayer), `relayer address is invalid (${relayer})`);