浏览代码

Missing view keyword IAccessManager interface (#4558)

Hadrien Croubois 2 年之前
父节点
当前提交
10e00c8ef5
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      contracts/access/manager/IAccessManager.sol

+ 3 - 3
contracts/access/manager/IAccessManager.sol

@@ -59,7 +59,7 @@ interface IAccessManager {
         bytes4 selector
     ) external view returns (bool allowed, uint32 delay);
 
-    function expiration() external returns (uint32);
+    function expiration() external view returns (uint32);
 
     function getContractClass(address target) external view returns (uint64 classId, bool closed);
 
@@ -99,9 +99,9 @@ interface IAccessManager {
 
     function setContractClosed(address target, bool closed) external;
 
-    function getSchedule(bytes32 id) external returns (uint48);
+    function getSchedule(bytes32 id) external view returns (uint48);
 
-    function getNonce(bytes32 id) external returns (uint32);
+    function getNonce(bytes32 id) external view returns (uint32);
 
     function schedule(address target, bytes calldata data, uint48 when) external returns (bytes32, uint32);