Skip to content

[Fixed] Forge test error [FAIL. Reason: Invalid data] setUp() (gas: 0) #3677

Answered by johnpaulcas
johnpaulcas asked this question in Help
Discussion options

You must be logged in to vote

Found the solution by doing the following

Update faundry by running

> foundryup

Then initialize the project

> forge init

After that you need to go to faundry.toml in your root project directory then specify the solc verson that you are using

then run

> forge clean
> forge build
> forge test

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by johnpaulcas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants