Skip to content

Commit

Permalink
Fix builder config parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Oct 30, 2024
1 parent 40206ba commit e26785c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/cli/src/util/proposerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ function parseProposerConfigSection(
overrideConfig?.strictFeeRecipientCheck ??
(strict_fee_recipient_check ? stringtoBool(strict_fee_recipient_check) : undefined),
feeRecipient: overrideConfig?.feeRecipient ?? (fee_recipient ? parseFeeRecipient(fee_recipient) : undefined),
builder: overrideConfig?.builder
? {
gasLimit: overrideConfig?.builder?.gasLimit ?? (gas_limit !== undefined ? Number(gas_limit) : undefined),
selection: overrideConfig?.builder?.selection ?? parseBuilderSelection(builderSelection),
boostFactor: overrideConfig?.builder?.boostFactor ?? parseBuilderBoostFactor(boost_factor),
}
: undefined,
builder:
overrideConfig?.builder || builder
? {
gasLimit: overrideConfig?.builder?.gasLimit ?? (gas_limit !== undefined ? Number(gas_limit) : undefined),
selection: overrideConfig?.builder?.selection ?? parseBuilderSelection(builderSelection),
boostFactor: overrideConfig?.builder?.boostFactor ?? parseBuilderBoostFactor(boost_factor),
}
: undefined,
};
}

Expand Down

0 comments on commit e26785c

Please sign in to comment.