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

testing errors #6

Closed
monaldmuck opened this issue Mar 12, 2024 · 2 comments
Closed

testing errors #6

monaldmuck opened this issue Mar 12, 2024 · 2 comments

Comments

@monaldmuck
Copy link

when i use :pragma solidity 0.8.20; i get
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

when i change to: pragma solidity >=0.8.19 <0.9.0;

i get an error with my: import {Test} from "forge-std/Test.sol";
Source "forge-std/Test.sol" not found: File import callback not supported

please help

@ebok21
Copy link

ebok21 commented Apr 1, 2024

i get an error with my: import {Test} from "forge-std/Test.sol"; Source "forge-std/Test.sol" not found: File import callback not supported

You will have to manually add the forge-std folder to foundry.toml like so:

remappings = [
    // other imports,
    'forge-std=lib/forge-std/src'
]

@PatrickAlphaC
Copy link
Member

Going to close, looks like you're all set?

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

3 participants