improve stateTransitionWait

This commit is contained in:
Hadrien Croubois
2023-05-04 16:51:18 +02:00
parent e856ebbbb5
commit fd5f309d86
8 changed files with 33 additions and 23 deletions

View File

@ -1,5 +1,5 @@
--- governance/extensions/GovernorTimelockControl.sol 2023-03-14 15:48:49.307543354 +0100
+++ governance/extensions/GovernorTimelockControl.sol 2023-03-16 16:01:13.857331689 +0100
--- governance/extensions/GovernorTimelockControl.sol 2023-05-04 11:44:55.587737817 +0200
+++ governance/extensions/GovernorTimelockControl.sol 2023-05-04 15:18:42.661075263 +0200
@@ -24,7 +24,7 @@
* _Available since v4.3._
*/
@ -21,3 +21,13 @@
/**
* @dev Function to queue a proposal to the timelock.
*/
@@ -163,4 +168,9 @@
emit TimelockChange(address(_timelock), address(newTimelock));
_timelock = newTimelock;
}
+
+ // FV
+ function timelockId(uint256 proposalId) public view returns (bytes32) {
+ return _timelockIds[proposalId];
+ }
}