Skip to content

Commit

Permalink
fix: prank developer on invariants setup
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Jul 29, 2024
1 parent 9eef558 commit e38a840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/invariant/BasicInvariants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ contract BasicInvariants is ERC4626StrategyTest {
for (uint256 i; i < _NUM_USER; i++) {
vm.label(_userHandler.actors(i), string.concat("User ", vm.toString(i)));
}
vm.startPrank(developer);
for (uint256 i; i < _NUM_KEEPER; i++) {
vm.prank(developer);
strategy.grantRole(strategy.KEEPER_ROLE(), _keeperHandler.actors(i));
vm.label(_keeperHandler.actors(i), string.concat("Keeper ", vm.toString(i)));
}
vm.stopPrank();
for (uint256 i; i < _NUM_PARAM; i++) {
vm.label(_paramHandler.actors(i), string.concat("Param ", vm.toString(i)));
}
Expand Down

0 comments on commit e38a840

Please sign in to comment.