foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.34k stars 1.77k forks source link

fix(anvil): correctly set hardfork-specific block fields #9202

Closed klkvr closed 1 month ago

klkvr commented 1 month ago

Motivation

ref https://github.com/foundry-rs/foundry/issues/9198#issuecomment-2439707092

Right now parent_beacon_block_root, withdrawals_root and requests_hash are always being set to None. They are indeed always empty but we should set empty values if corresponding hardfork is enabled.