From 920225a1c7e6e749ba23b10ed076b04f454290e8 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Fri, 12 Jan 2024 01:01:48 +0100 Subject: [PATCH] Add missing return value names in IAccessManager (#4829) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ernesto GarcĂ­a --- contracts/access/manager/IAccessManager.sol | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/contracts/access/manager/IAccessManager.sol b/contracts/access/manager/IAccessManager.sol index 3a6dc73114f..d420e112585 100644 --- a/contracts/access/manager/IAccessManager.sol +++ b/contracts/access/manager/IAccessManager.sol @@ -181,13 +181,16 @@ interface IAccessManager { * [2] Pending execution delay for the account. * [3] Timestamp at which the pending execution delay will become active. 0 means no delay update is scheduled. */ - function getAccess(uint64 roleId, address account) external view returns (uint48, uint32, uint32, uint48); + function getAccess( + uint64 roleId, + address account + ) external view returns (uint48 since, uint32 currentDelay, uint32 pendingDelay, uint48 effect); /** * @dev Check if a given account currently has the permission level corresponding to a given role. Note that this * permission might be associated with an execution delay. {getAccess} can provide more details. */ - function hasRole(uint64 roleId, address account) external view returns (bool, uint32); + function hasRole(uint64 roleId, address account) external view returns (bool isMember, uint32 executionDelay); /** * @dev Give a label to a role, for improved role discoverability by UIs. @@ -340,7 +343,11 @@ interface IAccessManager { * this is necessary, a random byte can be appended to `data` to act as a salt that will be ignored by the target * contract if it is using standard Solidity ABI encoding. */ - function schedule(address target, bytes calldata data, uint48 when) external returns (bytes32, uint32); + function schedule( + address target, + bytes calldata data, + uint48 when + ) external returns (bytes32 operationId, uint32 nonce); /** * @dev Execute a function that is delay restricted, provided it was properly scheduled beforehand, or the