governance_Governor.sol.patch 721 B

123456789101112131415161718192021222324
  1. --- governance/Governor.sol 2023-05-03 09:17:45.566699712 +0200
  2. +++ governance/Governor.sol 2023-05-04 15:18:42.667741565 +0200
  3. @@ -224,6 +224,21 @@
  4. return _proposals[proposalId].proposer;
  5. }
  6. + // FV
  7. + function _isExecuted(uint256 proposalId) internal view returns (bool) {
  8. + return _proposals[proposalId].executed;
  9. + }
  10. +
  11. + // FV
  12. + function _isCanceled(uint256 proposalId) internal view returns (bool) {
  13. + return _proposals[proposalId].canceled;
  14. + }
  15. +
  16. + // FV
  17. + function _governanceCallLength() internal view returns (uint256) {
  18. + return _governanceCall.length();
  19. + }
  20. +
  21. /**
  22. * @dev Amount of votes already cast passes the threshold limit.
  23. */