mirror of
https://github.com/vacp2p/staking-reward-streamer.git
synced 2026-01-07 22:43:53 -05:00
test(Karma): adjust fuzz test for slashing to ensure there's balance to
slash This will otherwise find counter examples where the transaction reverts.
This commit is contained in:
@@ -387,6 +387,9 @@ contract SlashAmountOfTest is KarmaTest {
|
||||
vm.assume(distributor1Balance < 1e30);
|
||||
vm.assume(distributor2Balance < 1e30);
|
||||
|
||||
// Ensure Alice has at least some balance to slash
|
||||
vm.assume(accountBalance + distributor1Balance + distributor2Balance > 0);
|
||||
|
||||
_mintKarmaToAccount(alice, accountBalance);
|
||||
vm.startPrank(owner);
|
||||
distributor1.setUserKarmaShare(alice, distributor1Balance);
|
||||
|
||||
Reference in New Issue
Block a user