Skip to content

Commit

Permalink
feat: use random address.
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux committed Sep 18, 2024
1 parent f2e4427 commit f5bf1db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion test/fork/LidoOwnerLpARM/Setters.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ contract Fork_Concrete_LidoOwnerLpARM_Setters_Test_ is Fork_Shared_Test_ {
//////////////////////////////////////////////////////
/// --- PASSING TESTS
//////////////////////////////////////////////////////
// Todo: create a aslidoOwnerLpARMOwner modifier
function test_SetPrices() public asLidoOwnerLpARMOperator {
lidoOwnerLpARM.setPrices(992 * 1e33, 1001 * 1e33);
lidoOwnerLpARM.setPrices(1001 * 1e33, 1004 * 1e33);
Expand Down
3 changes: 1 addition & 2 deletions test/fork/utils/Modifiers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ abstract contract Modifiers is Helpers {

/// @notice Impersonate a random address
modifier asRandomAddress() {
// Todo: Update forge and use randomAddress instead of makeAddr
vm.startPrank(makeAddr("Random address"));
vm.startPrank(vm.randomAddress());
_;
vm.stopPrank();
}
Expand Down

0 comments on commit f5bf1db

Please sign in to comment.