Skip to content

Commit

Permalink
assertGt > assertGe and improve fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jun 23, 2024
1 parent 7e703c4 commit 5773044
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Staking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ contract Stake is StakingTest {

_stake(_depositor2, _amount);

assertGt(
assertGe(
staking.balanceOf(_depositor1),
staking.balanceOf(_depositor2),
"Wrong balance"
Expand Down Expand Up @@ -918,6 +918,11 @@ contract Unstake is StakingTest {
_amount = _boundToRealisticStake(_amount);
_jump = _boundRealisticTimeAhead(_jump);

vm.assume(
_anyone != address(0) &&
_anyone != ProxyUtils.getAdminAddress(address(staking))
);

_mintGovToken(_depositor, _amount);
_setKeyper(_depositor, true);

Expand Down

0 comments on commit 5773044

Please sign in to comment.