Skip to content

Commit

Permalink
fix: compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Nov 6, 2024
1 parent ee4fd96 commit 98244b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/contracts/core/RewardsCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ contract RewardsCoordinator is

/// @inheritdoc IRewardsCoordinator
function setClaimerFor(address earner, address claimer) external checkCanCall(earner) {
require(delegation.isOperator(claimer), ClaimerNotOperator());
require(delegationManager.isOperator(earner), EarnerNotOperator());
_setClaimer(earner, claimer);
}

Expand Down
2 changes: 2 additions & 0 deletions src/contracts/interfaces/IRewardsCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import "./IStrategy.sol";
interface IRewardsCoordinatorErrors {
/// @dev Thrown when msg.sender is not allowed to call a function
error UnauthorizedCaller();
/// @dev Thrown when a earner is not an operator
error EarnerNotOperator();

/// Invalid Inputs

Expand Down
5 changes: 0 additions & 5 deletions src/test/unit/AllocationManagerUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2258,13 +2258,8 @@ contract AllocationManagerUnitTests_SetAllocationDelay is AllocationManagerUnitT
function test_fuzz_setDelay_multipleTimesWithinConfigurationDelay(
Randomness r
) public rand(r) {
<<<<<<< HEAD
uint32 firstDelay = uint32(r.Uint256(0, type(uint32).max));
uint32 secondDelay = uint32(r.Uint256(0, type(uint32).max));
=======
uint32 firstDelay = uint32(r.Uint256(1, type(uint32).max));
uint32 secondDelay = uint32(r.Uint256(1, type(uint32).max));
>>>>>>> 6040c9e3 (feat: move operator set functionality to alm)
cheats.assume(firstDelay != secondDelay);

// Set delay
Expand Down

0 comments on commit 98244b4

Please sign in to comment.