Skip to content

Commit 095e90f

Browse files
committed
certora: update state changes spec now that we have vault
1 parent 8e6ff63 commit 095e90f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

certora/confs/StateChanges.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
"files": [
33
"certora/harness/MarketplaceHarness.sol",
44
"contracts/Marketplace.sol",
5+
"contracts/Vault.sol",
56
"contracts/Groth16Verifier.sol",
67
"certora/helpers/ERC20A.sol",
78
],
89
"parametric_contracts": ["MarketplaceHarness"],
910
"link" : [
10-
"MarketplaceHarness:_token=ERC20A",
11+
"Vault:_token=ERC20A",
12+
"MarketplaceHarness:_vault=Vault",
1113
"MarketplaceHarness:_verifier=Groth16Verifier"
1214
],
1315
"msg": "Verifying StateChanges",

certora/specs/StateChanges.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rule allowedRequestStateChanges(env e, method f) {
2020
// we need to check for `freeSlot(slotId)` here to ensure it's being called with
2121
// the slotId we're interested in and not any other slotId (that may not pass the
2222
// required invariants)
23-
if (f.selector == sig:freeSlot(Marketplace.SlotId).selector || f.selector == sig:freeSlot(Marketplace.SlotId, address, address).selector) {
23+
if (f.selector == sig:freeSlot(Marketplace.SlotId).selector) {
2424
freeSlot(e, slotId);
2525
} else {
2626
f(e, args);

0 commit comments

Comments
 (0)