fixed function revert if executed

pull/2997/head
Michael M 3 years ago
parent 751277a1ab
commit 37a4975544
  1. 6
      certora/specs/GovernorBase.spec

@ -62,6 +62,12 @@ invariant cannotSetIfCanceled(uint256 pId)
*/ */
invariant cannotSetIfExecuted(uint256 pId) invariant cannotSetIfExecuted(uint256 pId)
isExecuted(pId) => lastReverted == true isExecuted(pId) => lastReverted == true
{
preserved execute(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) with (env e)
{
require(isExecuted(pId));
}
}

Loading…
Cancel
Save