foundry
foundry copied to clipboard
Optimism Hardfork Support
Motivation
Allow specifying hardfork when running with optimism
Resolves https://github.com/foundry-rs/foundry/issues/8732
Solution
Create new enums for optimism hardforks. Parsing is done when converting to config because clap does not support flag dependent value parsers unfortunately (at least as far as I know, If there's a good way to do this I'd love to know)
Thanks @ewoolsey! Approach looks good to me, pending reviews of others