Skip to content

Commit

Permalink
Fix settings builder config if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 30, 2024
1 parent 8169fce commit 40206ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/util/proposerConfig.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 40206ba

Please sign in to comment.