Skip to content

Commit 7d55b47

Browse files
committed
Fix tests
1 parent 508b1a9 commit 7d55b47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/QueryTypeStakingPool.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ contract Stake is QueryTypeStakingPoolTest {
303303
uint128 _capacity,
304304
address _blockedStaker
305305
) public {
306-
vm.assume(_blockedStaker != address(0));
306+
vm.assume(_blockedStaker != address(0) && _blockedStaker != staker);
307307
// Stake greater than staking capacity
308308
// total blocked is greater than the difference
309309
_capacity = uint128(bound(_capacity, 4, type(uint128).max));
@@ -1017,7 +1017,7 @@ contract Blocklist is QueryTypeStakingPoolTest {
10171017
uint256 _unstakeAmount,
10181018
uint256 _capacity
10191019
) public {
1020-
vm.assume(_user != address(0));
1020+
vm.assume(_user != address(0) && _user != address(pool));
10211021
_stakeAmount = bound(_stakeAmount, 1, INITIAL_BALANCE);
10221022
_capacity = bound(_capacity, _stakeAmount, type(uint256).max);
10231023

0 commit comments

Comments
 (0)