paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
4k stars 1.23k forks source link

replace struct inits with function #12654

Closed mattsse closed 3 days ago

mattsse commented 6 days ago

Describe the feature

we use this a lot https://github.com/paradigmxyz/reth/blob/496bf0bf715f0a1fafc198f8d72ccd71913d1a40/crates/chain-state/src/in_memory.rs#L622-L622

which makes it very hard to refactor

TODO

Additional context

No response

htiennv commented 6 days ago

I would like to do this, thanks @mattsse!