Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't pass the compiler version to compileSol() function #261

Open
PraneshASP opened this issue Apr 4, 2024 · 0 comments
Open

Couldn't pass the compiler version to compileSol() function #261

PraneshASP opened this issue Apr 4, 2024 · 0 comments

Comments

@PraneshASP
Copy link

PraneshASP commented Apr 4, 2024

Description

When I try to pass a compiler version to the compileSol() method, I'm getting the following error:

Unknown key "0"

Also when I try to pass the compiler version as "auto", it still errors with the following message:

Compiler version 0.8.25:
Unknown key "0"
Compiler version 0.8.24:
Unknown key "0"
Compiler version 0.8.23:
Unknown key "0"
Compiler version 0.8.22:
Unknown key "0"
Compiler version 0.8.21:
Unknown key "0"
Compiler version 0.8.20:
Unknown key "0"
Compiler version 0.8.19:
Unknown key "0"
...
...
Compiler version 0.8.4:
Unknown key "0"

Here's the code I'm using:

 compileResult = await compileSol("Test.sol", "0.8.0", {basePath: "/Projects/ZuniswapV2/contracts/"}, [], CompilerKind.Native);

Suggested solution [optional]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant