Skip to content

Commit

Permalink
change to not-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
hexonaut committed Mar 15, 2024
1 parent 3052f83 commit ce81124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plans/D3MOperatorPlan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ contract D3MOperatorPlan is ID3MPlan {
}

function setTargetAssets(uint256 value) external {
require(msg.sender == operator, "D3MOperatorPlan/not-authorized");
require(msg.sender == operator, "D3MOperatorPlan/not-operator");

targetAssets = value;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tests/plans/D3MOperatorPlan.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ contract D3MOperatorPlanTest is D3MPlanBaseTest {
_setupOperatorAndTargetAssets();

vm.prank(randomAddress);
vm.expectRevert("D3MOperatorPlan/not-authorized");
vm.expectRevert("D3MOperatorPlan/not-operator");
plan.setTargetAssets(200e18);
}

Expand Down

0 comments on commit ce81124

Please sign in to comment.