did some harnessing

pull/2997/head
Michael George 3 years ago
parent 5888bee853
commit d64869545d
  1. 2
      certora/scripts/WizardFirstTry.sh
  2. 8
      certora/specs/GovernorBase.spec

@ -3,6 +3,6 @@ certoraRun certora/harnesses/ERC20VotesHarness.sol certora/harnesses/WizardFirst
--solc solc8.2 \
--staging shelly/forSasha \
--optimistic_loop \
--disableLocalTypeChecking \
--settings -copyLoopUnroll=4 \
--rule allFunctionsRevertIfCanceled \
--msg "$1"

@ -25,8 +25,8 @@ methods {
getVotes(address, uint256) returns uint256 => DISPATCHER(true)
erc20votes.getPastTotalSupply(uint256) returns uint256
erc20votes.getPastVotes(address, uint256) returns uint256
getPastTotalSupply(uint256) returns uint256 => NONDET
getPastVotes(address, uint256) returns uint256 => NONDET
//scheduleBatch(address[],uint256[],bytes[],bytes32,bytes32,uint256) => DISPATCHER(true)
//executeBatch(address[], uint256[], bytes[], bytes32, bytes32) => DISPATCHER(true)
@ -281,7 +281,7 @@ rule allFunctionsRevertIfExecuted(method f) filtered { f ->
&& f.selector != updateTimelock(address).selector
&& f.selector != updateQuorumNumerator(uint256).selector
&& f.selector != queue(address[],uint256[],bytes[],bytes32).selector
&& f.selector != __acceptAdmin().selector
&& f.selector != 0xb9a61961 // __acceptAdmin()
} {
env e; calldataarg args;
uint256 pId;
@ -302,7 +302,7 @@ rule allFunctionsRevertIfCanceled(method f) filtered {
&& f.selector != updateTimelock(address).selector
&& f.selector != updateQuorumNumerator(uint256).selector
&& f.selector != queue(address[],uint256[],bytes[],bytes32).selector
&& f.selector != __acceptAdmin().selector
&& f.selector != 0xb9a61961 // __acceptAdmin()
} {
env e; calldataarg args;
uint256 pId;

Loading…
Cancel
Save