From 40206ba610c16e5b3d50bac519b9fd2331b6932a Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Wed, 30 Oct 2024 10:10:29 +0000 Subject: [PATCH] Fix settings builder config if undefined --- packages/cli/src/util/proposerConfig.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/src/util/proposerConfig.ts b/packages/cli/src/util/proposerConfig.ts index cd0382094622..06ea3e585536 100644 --- a/packages/cli/src/util/proposerConfig.ts +++ b/packages/cli/src/util/proposerConfig.ts @@ -1,7 +1,6 @@ import fs from "node:fs"; import path from "node:path"; import {ValidatorProposerConfig} from "@lodestar/validator"; -import {isEmptyObject} from "@lodestar/utils"; import {routes} from "@lodestar/api"; import {parseFeeRecipient} from "./feeRecipient.js"; @@ -89,7 +88,7 @@ function parseProposerConfigSection( overrideConfig?.strictFeeRecipientCheck ?? (strict_fee_recipient_check ? stringtoBool(strict_fee_recipient_check) : undefined), feeRecipient: overrideConfig?.feeRecipient ?? (fee_recipient ? parseFeeRecipient(fee_recipient) : undefined), - builder: !isEmptyObject(overrideConfig?.builder) + builder: overrideConfig?.builder ? { gasLimit: overrideConfig?.builder?.gasLimit ?? (gas_limit !== undefined ? Number(gas_limit) : undefined), selection: overrideConfig?.builder?.selection ?? parseBuilderSelection(builderSelection),