-
Notifications
You must be signed in to change notification settings - Fork 794
abigen.rs example #1213
Comments
same issue here, any updates @samlaf ? |
this example uses the default solc binary, which is ethers-rs/ethers-solc/src/compile/mod.rs Lines 145 to 159 in feaa473
could you retry after setting solc path? btw you can easily manage installs with svm-rs feel free to open a PR to add some notes here as well. |
so testing this, without solc (and no env set) I get:
With fake env vars, similiar results (not the same error above, but still an error). Moving to svm-rs over my install (just installed release like CI) I get:
My setup now has solc at
|
Recommendation would be to install solc as the CI pipeline does:
and in your
Which will make ethers-rs use the independent compiled version. But I do believe this is an issue with svm-rs installs and not ether-rs. Edit was a fool and forgot to switch solc versions. I believe this is actually an issue with the version of solc installed. |
@samlaf @anajuliabit Minimum solc version is 0.8.10, can you please install atleast that version (or higher) and re-run (you should no longer get the error above). |
@mattsse @gakonst Given the error was able to be re-produced with the suspected solc path issue (#1213 (comment)) and no follow up from OP/interested parties I think we are right to close this issue. |
Right. Seems like this should work with right Solc. |
Version
Platform
Linux samlaf-msi 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Description
When running the abigen.rs example, I get this error
I printed contracts (
let contracts = Solc::default().compile_source(&contract)?;
) and it saysAny idea as to what is happening here?
The text was updated successfully, but these errors were encountered: