From aad3171dd64d2e8028694aa5e7786dcc9349264a Mon Sep 17 00:00:00 2001 From: MoonBoi9001 Date: Thu, 3 Oct 2024 12:09:07 +0100 Subject: [PATCH] fix: apply consistent mapping order inside IHorizonStakingMain.sol (OZ_N-05) --- .../contracts/interfaces/internal/IHorizonStakingMain.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/horizon/contracts/interfaces/internal/IHorizonStakingMain.sol b/packages/horizon/contracts/interfaces/internal/IHorizonStakingMain.sol index eafce457a..8a6efacb1 100644 --- a/packages/horizon/contracts/interfaces/internal/IHorizonStakingMain.sol +++ b/packages/horizon/contracts/interfaces/internal/IHorizonStakingMain.sol @@ -336,7 +336,7 @@ interface IHorizonStakingMain { * @param serviceProvider The service provider address * @param verifier The verifier address */ - error HorizonStakingNotAuthorized(address caller, address serviceProvider, address verifier); + error HorizonStakingNotAuthorized(address serviceProvider, address caller, address verifier); /** * @notice Thrown when attempting to create a provision with an invalid maximum verifier cut. @@ -882,10 +882,10 @@ interface IHorizonStakingMain { /** * @notice Check if an operator is authorized for the caller on a specific verifier / data service. - * @param operator The address to check for auth * @param serviceProvider The service provider on behalf of whom they're claiming to act + * @param operator The address to check for auth * @param verifier The verifier / data service on which they're claiming to act * @return Whether the operator is authorized or not */ - function isAuthorized(address operator, address serviceProvider, address verifier) external view returns (bool); + function isAuthorized(address serviceProvider, address operator, address verifier) external view returns (bool); }