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

Error: find hangs when dealing tokens #409

Open
lelerukjaymoh opened this issue Jun 26, 2023 · 0 comments
Open

Error: find hangs when dealing tokens #409

lelerukjaymoh opened this issue Jun 26, 2023 · 0 comments

Comments

@lelerukjaymoh
Copy link

On some contracts like this where the balanceOf function has some extra functionality not just returning the mapping value, find(StdStorage storage self) hangs (the tests can't proceed and remain frozen). This issue is on specific contracts that overrides balanceOf and have extra implementation apart from just returning the balance value

The cause of this seems to be the staticcall to fetch the balanceOf at https://github.com/foundry-rs/forge-std/blob/5086c7a438a949012c5c6aa353e8f24c47d63237/src/StdStorage.sol#L76C43-L76C43.
Although not sure why the previous staticcall on line https://github.com/foundry-rs/forge-std/blob/5086c7a438a949012c5c6aa353e8f24c47d63237/src/StdStorage.sol#L46C41-L46C41 doesn't face the same issue

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

1 participant