|
1 | 1 | // SPDX-License-Identifier: MIT |
2 | | -pragma solidity 0.8.10; |
| 2 | +pragma solidity 0.8.19; |
3 | 3 |
|
4 | 4 | import "@openzeppelin/contracts/governance/Governor.sol"; |
5 | 5 | import "@openzeppelin/contracts/governance/extensions/GovernorSettings.sol"; |
@@ -47,7 +47,7 @@ contract ArenaGovernor is |
47 | 47 | function getVotes(address account, uint256 blockNumber) |
48 | 48 | public |
49 | 49 | view |
50 | | - override(IGovernor, GovernorVotes) |
| 50 | + override(IGovernor, Governor) |
51 | 51 | returns (uint256) |
52 | 52 | { |
53 | 53 | return super.getVotes(account, blockNumber); |
@@ -80,6 +80,15 @@ contract ArenaGovernor is |
80 | 80 | return super.propose(targets, values, calldatas, description); |
81 | 81 | } |
82 | 82 |
|
| 83 | + function cancel( |
| 84 | + address[] memory targets, |
| 85 | + uint256[] memory values, |
| 86 | + bytes[] memory calldatas, |
| 87 | + bytes32 descriptionHash |
| 88 | + ) public override(IGovernor, Governor, GovernorCompatibilityBravo) returns (uint256) { |
| 89 | + return super.cancel(targets, values, calldatas, descriptionHash); |
| 90 | + } |
| 91 | + |
83 | 92 | function proposalThreshold() |
84 | 93 | public |
85 | 94 | view |
@@ -112,9 +121,10 @@ contract ArenaGovernor is |
112 | 121 | uint256 proposalId, |
113 | 122 | address account, |
114 | 123 | uint8 support, |
115 | | - string memory reason |
| 124 | + string memory reason, |
| 125 | + bytes memory params |
116 | 126 | ) internal override(Governor, GovernorPreventLateQuorum) returns (uint256) { |
117 | | - return super._castVote(proposalId, account, support, reason); |
| 127 | + return super._castVote(proposalId, account, support, reason, params); |
118 | 128 | } |
119 | 129 |
|
120 | 130 | function _executor() |
|
0 commit comments