From d22e8ff7a5797f4813694269ce534da73bcf69f6 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Tue, 9 Jan 2024 21:01:21 +0100 Subject: [PATCH] fix: use bigint to calculate max builder boost factor --- packages/validator/src/services/validatorStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/validator/src/services/validatorStore.ts b/packages/validator/src/services/validatorStore.ts index 809ca0c8a7c6..b59b917be6b6 100644 --- a/packages/validator/src/services/validatorStore.ts +++ b/packages/validator/src/services/validatorStore.ts @@ -134,7 +134,7 @@ export const defaultOptions = { blindedLocal: false, }; -export const MAX_BUILDER_BOOST_FACTOR = BigInt(2 ** 64 - 1); +export const MAX_BUILDER_BOOST_FACTOR = 2n ** 64n - 1n; /** * Service that sets up and handles validator attester duties.