Closed totlsota closed 2 years ago
It seems this change to ethers-rs is the cause
Add Location To Solidity Pragma Directive (#638)
add loc to pragma directive
PragmaDirective(Loc, Vec<DocComment>, Identifier, StringLiteral),
Here is a short term fix, until foundry guys release an official fix
/Users/$USER/.cargo/git/checkouts/ethers-rs-c3a7c0a0ae0fe6be/93878e4/ethers-solc/src/resolver.rs
Change Line 426:
SourceUnitPart::PragmaDirective(_, pragma, value) => {
to
SourceUnitPart::PragmaDirective(_, _, pragma, value) => {
Run cast install command
cargo install --git https://github.com/gakonst/foundry --bin cast
there was a breaking change on solang-parser
fixed on ethers-rs here, https://github.com/gakonst/ethers-rs/pull/796
then needs a cargo update -p ethers
here
OS:
Mac 11.5
Install command
Issue:
cast fails to compile with error below
forge binary builds and runs fine
Error trace