@@ -2051,6 +2051,7 @@ contract StakingContractBehindProxyTest is Test {
2051
2051
2052
2052
SanctionsOracle oracle;
2053
2053
2054
+ address internal proxyAdmin = address (42 );
2054
2055
event ExitRequest (address caller , bytes pubkey );
2055
2056
2056
2057
function setUp () public {
@@ -2065,17 +2066,17 @@ contract StakingContractBehindProxyTest is Test {
2065
2066
address cldImpl = address (new ConsensusLayerFeeDispatcher (1 ));
2066
2067
address stakingContractImpl = address (new StakingContract ());
2067
2068
2068
- stakingContract = StakingContract (payable (address (new TUPProxy (stakingContractImpl, address ( 12345 ) , "" ))));
2069
+ stakingContract = StakingContract (payable (address (new TUPProxy (stakingContractImpl, proxyAdmin , "" ))));
2069
2070
2070
2071
eld = ExecutionLayerFeeDispatcher (
2071
2072
payable (
2072
- address (new TUPProxy (eldImpl, address ( 1 ) , abi.encodeWithSignature ("initELD(address) " , stakingContract)))
2073
+ address (new TUPProxy (eldImpl, proxyAdmin , abi.encodeWithSignature ("initELD(address) " , stakingContract)))
2073
2074
)
2074
2075
);
2075
2076
2076
2077
cld = ConsensusLayerFeeDispatcher (
2077
2078
payable (
2078
- address (new TUPProxy (cldImpl, address ( 1 ) , abi.encodeWithSignature ("initCLD(address) " , stakingContract)))
2079
+ address (new TUPProxy (cldImpl, proxyAdmin , abi.encodeWithSignature ("initCLD(address) " , stakingContract)))
2079
2080
)
2080
2081
);
2081
2082
@@ -2178,6 +2179,7 @@ contract StakingContractBehindProxyTest is Test {
2178
2179
}
2179
2180
2180
2181
function test_deposit_withsanctions_senderSanctioned (address user ) public {
2182
+ vm.assume (user != proxyAdmin);
2181
2183
oracle.setSanction (user, true );
2182
2184
2183
2185
vm.prank (admin);
@@ -2192,6 +2194,8 @@ contract StakingContractBehindProxyTest is Test {
2192
2194
}
2193
2195
2194
2196
function test_deposit_withSanctions_SenderClear (address user ) public {
2197
+ vm.assume (user != proxyAdmin);
2198
+
2195
2199
vm.prank (admin);
2196
2200
stakingContract.setSanctionsOracle (address (oracle));
2197
2201
@@ -2203,6 +2207,8 @@ contract StakingContractBehindProxyTest is Test {
2203
2207
}
2204
2208
2205
2209
function test_deposit_BlockedUser (address user ) public {
2210
+ vm.assume (user != proxyAdmin);
2211
+
2206
2212
vm.prank (admin);
2207
2213
stakingContract.blockAccount (user, "" );
2208
2214
0 commit comments