Skip to content

Commit

Permalink
chore(certora): upgrade certora-cli to 7.0.7
Browse files Browse the repository at this point in the history
This upgrade certora-cli on CI to version 7.0.7 which no longer requires
the `STORAGE` keyword in storage hooks.
  • Loading branch information
0x-r4bbit committed Mar 20, 2024
1 parent 70b092a commit 6182d95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
with: { java-version: "11", java-package: jre }

- name: Install Certora CLI
run: pip3 install certora-cli==6.3.1
run: pip3 install certora-cli==7.0.7

- name: Install Solidity
run: |
Expand Down
6 changes: 3 additions & 3 deletions certora/specs/StakeManager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ ghost mathint sumOfBalances /* sigma account[u].balance forall u */ {
init_state axiom sumOfBalances == 0;
}

hook Sstore epochs[KEY uint256 epochId].epochReward uint256 newValue (uint256 oldValue) STORAGE {
hook Sstore epochs[KEY uint256 epochId].epochReward uint256 newValue (uint256 oldValue) {
sumOfEpochRewards = sumOfEpochRewards - oldValue + newValue;
}

hook Sstore accounts[KEY address addr].balance uint256 newValue (uint256 oldValue) STORAGE {
hook Sstore accounts[KEY address addr].balance uint256 newValue (uint256 oldValue) {
sumOfBalances = sumOfBalances - oldValue + newValue;
}

hook Sstore accounts[KEY address addr].currentMP uint256 newValue (uint256 oldValue) STORAGE {
hook Sstore accounts[KEY address addr].currentMP uint256 newValue (uint256 oldValue) {
sumOfMultipliers = sumOfMultipliers - oldValue + newValue;
}

Expand Down
2 changes: 1 addition & 1 deletion certora/specs/StakeManagerProcessAccount.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getAccountLockUntil(address addr) returns uint256 {
return lockUntil;
}

hook Sstore accounts[KEY address addr].balance uint256 newValue (uint256 oldValue) STORAGE {
hook Sstore accounts[KEY address addr].balance uint256 newValue (uint256 oldValue) {
balanceChangedInEpoch[addr] = accountProcessed[addr];
}

Expand Down

0 comments on commit 6182d95

Please sign in to comment.