Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
test_PositiveFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrajath committed Apr 8, 2024
1 parent cf87865 commit 58f0b3e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/rewards-claimer/LlamaRewardsClaimGuard.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ contract ValidateActionCreation is LlamaRewardsClaimGuardTest {
);
}

function test_PositiveFlow() public {
LlamaRewardsClaimAccountExtension.TargetData[] memory targetData = _setupClaimRewardsData();

bytes memory accountExtensionData = abi.encodeCall(LlamaRewardsClaimAccountExtension.claimRewards, (targetData));
bytes memory data =
abi.encodeCall(ILlamaAccount.execute, (address(rewardsClaimAccountExtension), true, 0, accountExtensionData));

assertEq(CORE.actionsCount(), 12);

vm.prank(coreTeam1);
CORE.createAction(CORE_TEAM_ROLE, STRATEGY, address(ACCOUNT), 0, data, "");

assertEq(CORE.actionsCount(), 13);
}

function test_RevertIf_TargetIsNotRewardsClaimer() public {
LlamaRewardsClaimAccountExtension.TargetData[] memory targetData = _setupClaimRewardsData();

Expand Down

0 comments on commit 58f0b3e

Please sign in to comment.