Skip to content

Commit

Permalink
fix: apply consistent mapping order ProvisionManagerNotAuthorized (OZ…
Browse files Browse the repository at this point in the history
…_N-05)
  • Loading branch information
MoonBoi9001 committed Oct 4, 2024
1 parent c7bc66a commit addcfbc
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 addcfbc

Please sign in to comment.