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

forge test hangs when using stdstore on a fork #4735

Closed
2 tasks done
trojanMcAfee opened this issue Apr 13, 2023 · 1 comment
Closed
2 tasks done

forge test hangs when using stdstore on a fork #4735

trojanMcAfee opened this issue Apr 13, 2023 · 1 comment
Labels
C-forge Command: forge Cmd-forge-test Command: forge test T-bug Type: bug

Comments

@trojanMcAfee
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (97f070f 2023-03-17T09:30:30.350509Z)

What command(s) is the bug in?

No response

Operating System

macOS (Intel)

Describe the bug

Like #4656 , forge hangs when running tests against a fork. This time is when using stdstore to find the storage slot of a struct variable.

uint256 slot = stdstore
            .target(address(contract))
            .sig('MyStruct()')
            .depth(0)
            .find();

Like with the bug mentioned in the beginning, if I add the prefix RUST_LOG=forge=trace,foundry_evm=trace,ethers=trace to my original command forget test -m $FUNC -vvv, I can see all the RPC requests being done.

And also, like in that bug, adding a specific sender with targetSender(address) or the fuzz runs don't solve the issue.

@trojanMcAfee trojanMcAfee added the T-bug Type: bug label Apr 13, 2023
@gakonst gakonst added this to Foundry Apr 13, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Apr 13, 2023
@mds1 mds1 added Cmd-forge-test Command: forge test C-forge Command: forge labels Apr 13, 2023
@grandizzy
Copy link
Collaborator

I am going to close this one per #4656 (comment) Pls reopen if you hit this again. thank you!

@jenpaff jenpaff moved this from Todo to Completed in Foundry Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge Cmd-forge-test Command: forge test T-bug Type: bug
Projects
Archived in project
Development

No branches or pull requests

3 participants