-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(forge): cheatcode for getting the current prank #4875
Comments
If no one is working on this I'd be happy to give this a try. Any tip or suggestion on how to get this done would be more than welcome |
Hey @xeno097, awesome. For adding a cheatcode, this article can be really useful. Be mindful that after adding a cheatcode we usually ask for a follow up PR for forge-std and the foundry book (i'll point this out again on the PR) Before you're fully off to the races, I'd like to loop in @mds1 to see if he has any opinions about this cheatcode's design |
Considering that the function readPrank() external returns (bool, address, address) The first |
Closing—fixed by #4884 |
wicked |
Component
Forge
Describe the feature you would like
It would be helpful to have a cheatcode for reading the current prank. The use case is testing utilities that don't have knowledge of when the current prank was started, but which require tweaking the
msg.sender
to perform a particular action in the contracts.Suggested names:
getPrank
currentPrank
readPrank
The text was updated successfully, but these errors were encountered: