chore: avoid eager evaluation in base_fee_params_at_timestamp (#21536)

This commit is contained in:
ethfanWilliam
2026-02-01 23:04:42 +04:00
committed by GitHub
parent 7e18aa4be8
commit 2970624413

View File

@@ -541,7 +541,7 @@ impl<H: BlockHeader> ChainSpec<H> {
}
}
bf_params.first().map(|(_, params)| *params).unwrap_or(BaseFeeParams::ethereum())
bf_params.first().map(|(_, params)| *params).unwrap_or_else(BaseFeeParams::ethereum)
}
}
}