`hardhat-foundry` should inherit compiler settings
Describe the feature
Not sure if something's missing, but even after using hardhat-foundry, if I remove solidity compiler config from hardhat config, it is not automatically picked up from foundry config. I get the warning that the config is not there and defaults to v0.7.3
Ideally solidity compiler settings including version and optimizer runs should be picked up from foundry
Search terms
hardhat-foundry compiler setting optimizer runs foundry hardhat config
Being able to rely just on the foundry.toml rather than replicating the compiler settings in both foundry.toml and hardhat.config.{js,ts} makes sense.
I think it would work like a fallback, if the Solidity configuration value is missing, attempt to resolve the correct settings from the foundry.toml.
We need to take a look at the options foundry allows for Solidity, and establish that for every configuration, we can transform that into an equivalent in Hardhat when the foundry.toml is acting as a fallback.