Skip to content

Commit

Permalink
test: fix bribe test
Browse files Browse the repository at this point in the history
It was never claiming anything.
  • Loading branch information
danielattilasimon committed Dec 11, 2024
1 parent 971399f commit df058cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/BribeInitiativeFireAndForget.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ contract BribeInitiativeFireAndForgetTest is MockStakingV1Deployer {
uint16 startingEpoch = governance.epoch();
uint16 lastEpoch = startingEpoch;

for (uint16 i = 0; i < MAX_NUM_EPOCHS; ++i) {
uint128 boldAmount = uint128(random.generate(MAX_BRIBE));
uint128 brybAmount = uint128(random.generate(MAX_BRIBE));
for (uint16 i = startingEpoch; i < startingEpoch + MAX_NUM_EPOCHS; ++i) {
boldAtEpoch[i] = random.generate(MAX_BRIBE);
brybAtEpoch[i] = random.generate(MAX_BRIBE);

bold.mint(briber, boldAmount);
bryb.mint(briber, brybAmount);
bold.mint(briber, boldAtEpoch[i]);
bryb.mint(briber, brybAtEpoch[i]);

vm.prank(briber);
bribeInitiative.depositBribe(boldAmount, brybAmount, startingEpoch + i);
bribeInitiative.depositBribe(uint128(boldAtEpoch[i]), uint128(brybAtEpoch[i]), i);
}

for (;;) {
Expand Down

0 comments on commit df058cf

Please sign in to comment.