governance_extensions_GovernorTimelockControl.sol.patch 826 B

1234567891011121314151617181920212223
  1. --- governance/extensions/GovernorTimelockControl.sol 2023-03-14 15:48:49.307543354 +0100
  2. +++ governance/extensions/GovernorTimelockControl.sol 2023-03-16 16:01:13.857331689 +0100
  3. @@ -24,7 +24,7 @@
  4. * _Available since v4.3._
  5. */
  6. abstract contract GovernorTimelockControl is IGovernorTimelock, Governor {
  7. - TimelockController private _timelock;
  8. + TimelockController public _timelock; // FV: public for link
  9. mapping(uint256 => bytes32) private _timelockIds;
  10. /**
  11. @@ -84,6 +84,11 @@
  12. return eta == 1 ? 0 : eta; // _DONE_TIMESTAMP (1) should be replaced with a 0 value
  13. }
  14. + // FV
  15. + function _proposalQueueId(uint256 proposalId) internal view returns (bytes32) {
  16. + return _timelockIds[proposalId];
  17. + }
  18. +
  19. /**
  20. * @dev Function to queue a proposal to the timelock.
  21. */