foundry编译智能契约时遇到此问题&获取此错误forge build
[⠃] Compiling...The application panicked (crashed).
Message: checksum not found
Location: ~/.cargo/git/checkouts/ethers-rs-c3a7c0a0ae0fe6be/01d3e43/ethers-solc/src/compile/mod.rs:463
This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.发布于 2023-04-20 17:38:48
在我的例子中,当我在foundry.toml配置文件中指定solc的版本时,问题已经解决了:
solc_version = "0.8.19"发布于 2023-04-19 21:33:53
forge build --no-auto-detectforge test --no-auto-detecthttps://ethereum.stackexchange.com/questions/149216
复制相似问题