Skip to content

Commit

Permalink
fix: apply consistent mapping order inside ProvisionManager.sol (OZ_N…
Browse files Browse the repository at this point in the history
…-05)
  • Loading branch information
MoonBoi9001 committed Oct 3, 2024
1 parent 63c373e commit bf97048
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ abstract contract ProvisionManager is Initializable, GraphDirectory, ProvisionMa
* @param caller The address of the caller.
* @param serviceProvider The address of the service provider.
*/
error ProvisionManagerNotAuthorized(address caller, address serviceProvider);
error ProvisionManagerNotAuthorized(address serviceProvider, address caller);

/**
* @notice Thrown when a provision is not found.
Expand All @@ -84,8 +84,8 @@ abstract contract ProvisionManager is Initializable, GraphDirectory, ProvisionMa
*/
modifier onlyProvisionAuthorized(address serviceProvider) {
require(
_graphStaking().isAuthorized(msg.sender, serviceProvider, address(this)),
ProvisionManagerNotAuthorized(msg.sender, serviceProvider)
_graphStaking().isAuthorized(serviceProvider, msg.sender, address(this)),
ProvisionManagerNotAuthorized(serviceProvider, msg.sender)
);
_;
}
Expand Down

0 comments on commit bf97048

Please sign in to comment.