[Fixed] Forge test error [FAIL. Reason: Invalid data] setUp() (gas: 0) #3677
-
I created new project today (11/13/2022) using forge install, and try to run > forge clean
> forge compile when I tried to run
I encounter an error saying
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
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 then run > forge clean
> forge build
> forge test |
Beta Was this translation helpful? Give feedback.
-
Followed the instructions above but I am still experiencing the same issue |
Beta Was this translation helpful? Give feedback.
-
we found that running therefore if you are getting this error, your version of foundry is most likely too old. |
Beta Was this translation helpful? Give feedback.
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 usingthen run