-
Notifications
You must be signed in to change notification settings - Fork 48
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
EVM: respect vm.prank during calls to create #564
base: main
Are you sure you want to change the base?
Conversation
address usr = address(1312); | ||
vm.prank(usr); | ||
target = new Owned(); | ||
assert(target.owner() == usr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check that it changes back afterwards...
resetCaller <- use (#config % #resetCaller) | ||
when (resetCaller) $ assign (#config % #overrideCaller) Nothing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain for me what these two lines do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I think the current state of this PR is that the original issue has been fixed, but the |
Description
Updates our
prank
implementation to match foundrys.prank
is now respected during contract creation.Checklist