From 431aa69920d0ff53b40a9a510b7a90cfbfcbb114 Mon Sep 17 00:00:00 2001 From: ben-ambient <167757579+ben-ambient@users.noreply.github.com> Date: Mon, 20 May 2024 17:25:08 +0100 Subject: [PATCH] Update helpers.ts blockRange() to include arbitrum_sepolia in check The blockRange function should also include arbitrum_sepoliam, as this has the same problem with blockNumber as arbitrum --- sdk/js/src/relayer/relayer/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/js/src/relayer/relayer/helpers.ts b/sdk/js/src/relayer/relayer/helpers.ts index 29f0947680..77acebf86a 100644 --- a/sdk/js/src/relayer/relayer/helpers.ts +++ b/sdk/js/src/relayer/relayer/helpers.ts @@ -357,7 +357,7 @@ export async function getWormholeRelayerInfoByHash( // There is weirdness with arbitrum where if you call 'block.number', it gives you the L1 block number (the ethereum one) - and this is what is stored in the 'replay protection mapping' - so basically that value isn't useful in finding the delivery here const blockRange = infoRequest?.targetBlockRange || - (targetChain === "arbitrum" + (targetChain === "arbitrum" || targetChain === "arbitrum_sepolia" ? undefined : [blockNumber.toNumber(), blockNumber.toNumber()]);