Skip to content

Commit

Permalink
Test add more rewards after the contract is created
Browse files Browse the repository at this point in the history
  • Loading branch information
enriquefynn committed Nov 27, 2023
1 parent 3fd9291 commit 231de98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/FeeRewardsManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ contract FeeRewardsTest is Test {
// We've got the ether.
assertEq(address(feeRewardsManager).balance, 0 ether);
assertEq(address(101).balance, 2.8 ether);

vm.deal(derivedAddr, 10 ether);
RewardsCollector(payable(addr)).collectRewards();
assertEq(addr.balance, 0 ether);
assertEq(withdrawalCredential.balance, 7.2 ether + 7.2 ether);
assertEq(address(101).balance, 2.8 ether);
}

function createWithdrawalSimulateRewards(
Expand Down

0 comments on commit 231de98

Please sign in to comment.