Skip to content

Commit 8b4f318

Browse files
authored
fix(anvil): use consistent chain_id fallback for blob params (#13241)
1 parent 9ebbe8c commit 8b4f318

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

crates/anvil/src/config.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ impl NodeConfig {
534534
BlobExcessGasAndPrice::new(
535535
excess_blob_gas,
536536
get_blob_base_fee_update_fraction(
537-
self.chain_id.unwrap_or(Chain::mainnet().id()),
537+
self.get_chain_id(),
538538
self.get_genesis_timestamp(),
539539
),
540540
)
@@ -543,10 +543,7 @@ impl NodeConfig {
543543

544544
/// Returns the [`BlobParams`] that should be used.
545545
pub fn get_blob_params(&self) -> BlobParams {
546-
get_blob_params(
547-
self.chain_id.unwrap_or(Chain::mainnet().id()),
548-
self.get_genesis_timestamp(),
549-
)
546+
get_blob_params(self.get_chain_id(), self.get_genesis_timestamp())
550547
}
551548

552549
/// Returns the hardfork to use

0 commit comments

Comments
 (0)