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

Code doesn't compile when I paste into remix #78

Open
donaldnft opened this issue Dec 5, 2023 · 0 comments
Open

Code doesn't compile when I paste into remix #78

donaldnft opened this issue Dec 5, 2023 · 0 comments

Comments

@donaldnft
Copy link

When I paste the code into remix, it doesn't compile and gives this error:
ParserError: Source file requires different compiler version (current compiler is 0.8.0+commit.c7dfd78e.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
--> @openzeppelin/contracts/access/Ownable.sol:4:1:
|
4 | pragma solidity ^0.8.20;
| ^^^^^^^^^^^^^^^^^^^^^^^^

When I put the compiler 0.8.20:

DeclarationError: Undeclared identifier.
--> contracts/LowGas.sol:99:7:
|
99 | _exists(_tokenId),
| ^^^^^^^

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