From f5bf1dba792762068f8bcef7e04b2e581b51d92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 18 Sep 2024 21:45:31 +0200 Subject: [PATCH] feat: use random address. --- test/fork/LidoOwnerLpARM/Setters.t.sol | 1 - test/fork/utils/Modifiers.sol | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/test/fork/LidoOwnerLpARM/Setters.t.sol b/test/fork/LidoOwnerLpARM/Setters.t.sol index 8e10d91..3bcd360 100644 --- a/test/fork/LidoOwnerLpARM/Setters.t.sol +++ b/test/fork/LidoOwnerLpARM/Setters.t.sol @@ -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); diff --git a/test/fork/utils/Modifiers.sol b/test/fork/utils/Modifiers.sol index c83e6eb..44ea756 100644 --- a/test/fork/utils/Modifiers.sol +++ b/test/fork/utils/Modifiers.sol @@ -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(); }