-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Forge test hangs forever #4728
Comments
Interesting. So that's equivalent to -vvvvv and I get the same error. Thanks for pointing that out. |
Lol. Ok, that's not really the source of the bug. |
Ok, the problem you found was just caused by the RUST_LOG setting.
` The results have not changed. The hanging bug still hangs and the OutOfGas error still happens too. |
Can someone look at this please ? My pull request to the Diamond Foundry project has been merged. FydeTreasury/Diamond-Foundry#6 The problem still persists. |
Could this be because the |
I cannot reproduce this with latest commit and running |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (388c3c0 2023-04-12T03:09:53.984763822Z)
What command(s) is the bug in?
forge test --ffi
Operating System
Linux
Describe the bug
I have a diamond contract that has multiple facets. The high level description is that one facet lets a user publish a series of puzzles, keyed by hashes and tracked by owner. One facet lets anyone query the puzzles.
I can retrieve all but the first puzzle. Attempting to retrieve any other hangs the test.
I have a separate issue in which the EVM runs out of gas calling a separate method (see bottom of #3971) . I have looked at expanding the gas and memory limits, but none seem to have an impact.
The code works fine on Goerli.
You can check out the test here https://github.com/BqETH/solidity/commit/4ecf04021a11736d6f956c51cc18bea99d0cd3e4 and run
forge test --ffi -vvvv -m "testCanRegisterPuzzle"
to make it hang.
If I try the debugger, it also hangs and never gives me the debugger screen.
I'm not sure what else I can do.
The text was updated successfully, but these errors were encountered: