vscode-solidity
vscode-solidity copied to clipboard
add support to configure `evm_version`
Foundry can compile successfully but vscode is prompting: Undeclared identifier. Did you mean "blockhash"?(7576):
This error is the same error I get from foundry if evm_version is not configured here.
Currently there's no way to configure evm_version for a foundry project:
{
"solidity.formatter": "forge",
"solidity.defaultCompiler": "localNodeModule"
}
It would be great if vscode-solidity can read foundry.toml automatically.
Here's the repo that's trigering this issue:
https://github.com/zhiqiangxu/es-op-batchinbox
Added an option on settings now, yes importing from foundry.toml will be ideal
@zhiqiangxu it is out now
@juanfranblanco It works great! Is there a plan to import from foundry.toml ?
Yes there is, as the settings import directly, hopefully I get some time to do it soon.