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

Source file requires different compiler version #14676

Closed
emiliolanzalaco opened this issue Nov 8, 2023 · 4 comments
Closed

Source file requires different compiler version #14676

emiliolanzalaco opened this issue Nov 8, 2023 · 4 comments

Comments

@emiliolanzalaco
Copy link

Hi, I am having some issues with the compiler version.

I am inside of a basic forge init repo. I am trying to use solidity version 0.8.22 but I am locked to 0.8.19 no matter what settings I choose.

Here is my settings.json inside the workspace:

{
    "solidity.compileUsingRemoteVersion": "v0.8.22+commit.4fc1097e",
    "solidity.defaultCompiler": "remote"
}

Here is my solidity file:

// SPDX-License-Identifier: MIT

pragma solidity 0.8.22;

And here is my error:

Source file requires different compiler version (current compiler is 0.8.19+commit.7dd6d404.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version(5333)

I think this could be a bug. Could someone replicate this?

@emiliolanzalaco
Copy link
Author

Sorry I meant to open this in https://github.com/juanfranblanco/vscode-solidity

@qwerty472123
Copy link

@emiliolanzalaco
I found this is caused by the content of https://binaries.soliditylang.org/bin/soljson-latest.js is same as https://binaries.soliditylang.org/bin/soljson-v0.8.19+commit.7dd6d404.js, now.

I wonder where can found maintainer of binaries.soliditylang.org to fix this issue. Thanks.

@marospaliga
Copy link

Any solution for this? I have same problem trying to use higher versions.

@last0x
Copy link

last0x commented Aug 5, 2024

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

No branches or pull requests

5 participants