HarnessCleaning

pull/2997/head
Aleksander Kryukov 3 years ago
parent dae72a7e1b
commit 7d0eeab6f7
  1. 9
      certora/harnesses/ERC20VotesHarness.sol
  2. 3
      certora/harnesses/WizardControlFirstPriority.sol
  3. 1
      certora/harnesses/WizardFirstTry.sol

@ -25,13 +25,4 @@ contract ERC20VotesHarness is ERC20Votes {
_getPastVotes[delegator][block.number] -= balanceOf(delegator); _getPastVotes[delegator][block.number] -= balanceOf(delegator);
_getPastVotes[delegatee][block.number] += balanceOf(delegator); _getPastVotes[delegatee][block.number] += balanceOf(delegator);
} }
/*
function getPastVotes(address account, uint256 blockNumber) public view virtual override returns (uint256) {
uint256 gpv = super.getPastVotes(account, blockNumber);
require (_getPastVotes[account][blockNumber] == gpv);
return gpv;
}
*/
} }

@ -12,7 +12,7 @@ import "../../contracts/governance/extensions/GovernorProposalThreshold.sol";
Wizard options: Wizard options:
ProposalThreshhold = 10 ProposalThreshhold = 10
ERC20Votes ERC20Votes
TimelockCOntroller TimelockController
*/ */
contract WizardControlFirstPriority is Governor, GovernorProposalThreshold, GovernorCountingSimple, GovernorVotes, GovernorVotesQuorumFraction, GovernorTimelockControl { contract WizardControlFirstPriority is Governor, GovernorProposalThreshold, GovernorCountingSimple, GovernorVotes, GovernorVotesQuorumFraction, GovernorTimelockControl {
@ -77,6 +77,7 @@ contract WizardControlFirstPriority is Governor, GovernorProposalThreshold, Gove
return _proposalThreshold; // HARNESS: parametric return _proposalThreshold; // HARNESS: parametric
} }
// original code, not harnessed
// The following functions are overrides required by Solidity. // The following functions are overrides required by Solidity.
function quorum(uint256 blockNumber) function quorum(uint256 blockNumber)

@ -68,6 +68,7 @@ contract WizardFirstTry is Governor, GovernorCountingSimple, GovernorVotes, Gove
return _votingPeriod; // HARNESS: parametric return _votingPeriod; // HARNESS: parametric
} }
// original code, not harnessed
// The following functions are overrides required by Solidity. // The following functions are overrides required by Solidity.
function quorum(uint256 blockNumber) function quorum(uint256 blockNumber)

Loading…
Cancel
Save