diff --git a/src/plans/D3MOperatorPlan.sol b/src/plans/D3MOperatorPlan.sol index f8f884b8..e093a697 100644 --- a/src/plans/D3MOperatorPlan.sol +++ b/src/plans/D3MOperatorPlan.sol @@ -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; } diff --git a/src/tests/plans/D3MOperatorPlan.t.sol b/src/tests/plans/D3MOperatorPlan.t.sol index a782df98..174c1fd9 100644 --- a/src/tests/plans/D3MOperatorPlan.t.sol +++ b/src/tests/plans/D3MOperatorPlan.t.sol @@ -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); }