From a5b83247252d12ccc844da1d2b6d493a4e97d177 Mon Sep 17 00:00:00 2001 From: nicholaspai <9457025+nicholaspai@users.noreply.github.com> Date: Thu, 28 Sep 2023 14:41:50 -0400 Subject: [PATCH] Update src/dataworker/Dataworker.ts Co-authored-by: Paul <108695806+pxrl@users.noreply.github.com> --- src/dataworker/Dataworker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dataworker/Dataworker.ts b/src/dataworker/Dataworker.ts index 2c679fc23..494b6d372 100644 --- a/src/dataworker/Dataworker.ts +++ b/src/dataworker/Dataworker.ts @@ -1144,7 +1144,7 @@ export class Dataworker { // Bundles that need to be validated with older code should emit helpful error logs about which code to run. // @dev only throw this error if the hub chain ID is 1, suggesting we're running on production. - if (hubPoolChainId === 1 && versionAtProposalBlock <= sdk.constants.TRANSFER_THRESHOLD_MAX_CONFIG_STORE_VERSION) { + if (versionAtProposalBlock <= sdk.constants.TRANSFER_THRESHOLD_MAX_CONFIG_STORE_VERSION && hubPoolChainId === 1) { throw new Error( "Must use relayer-v2 code at commit 412ddc30af72c2ac78f9e4c8dccfccfd0eb478ab to validate a bundle with transferThreshold set" );