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:
r4bbit
2025-06-13 13:22:16 +02:00
parent 44700264f5
commit 5c6289901c

View File

@@ -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);