From b15b302ba803fcb59919dfd10eae8d6be2118cd7 Mon Sep 17 00:00:00 2001 From: maskpp Date: Mon, 30 Dec 2024 10:26:22 +0800 Subject: [PATCH] fill the baseFee --- crates/taiko/payload/builder/src/builder.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/taiko/payload/builder/src/builder.rs b/crates/taiko/payload/builder/src/builder.rs index d1fbb29f3c14..4d7df4b7c595 100644 --- a/crates/taiko/payload/builder/src/builder.rs +++ b/crates/taiko/payload/builder/src/builder.rs @@ -65,7 +65,11 @@ where suggested_fee_recipient: config.attributes.suggested_fee_recipient(), prev_randao: config.attributes.prev_randao(), }; - self.evm_config.next_cfg_and_block_env(parent, next_attributes) + let (cfg_with_handler_cfg, mut block_env) = + self.evm_config.next_cfg_and_block_env(parent, next_attributes)?; + block_env.basefee = config.attributes.base_fee_per_gas; + + Ok((cfg_with_handler_cfg, block_env)) } }