-
Notifications
You must be signed in to change notification settings - Fork 11
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 1.0 support #778
Forge 1.0 support #778
Conversation
- all tests start with fake startPrank by calling _startTest() - through test helper methods only changePrank is used (as start prank ensured in _startTest())
6bb8811
to
7714df7
Compare
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
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.
Looks cleaner. Just hope it doesn't break again when they fix foundry-rs/foundry#4826 .
Good point, thanks, wasn't aware of that issue. I'll set a watch on it |
Unit tests:
startPrank
by calling_startTest()
changePrank
is used (as start prank ensured in_startTest()
)Gas load tests:
startPrank
before using test helper functions (which usechangePrank
)soptPrank
after using test helper functionsInvariant tests - in
useRandomActor
modifier:startPrank
, if that fails then fallback tochangePrank
stopPrank
as not needed (changePrank
does stop/startPrank)Switch CI back to use nightly forge