ConsenSysMesh / ConsenSysMesh/singulardtv-contracts

checkInvariants for both pre and post conditions

Open
#36 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
19
Forks
14
PR merge metrics
No merged PRs in 30d

Description

How about a modifier like this ?

```
modifier checkInvariants() {
if (fundBalance != this.balance) {
throw;
}
_
if (fundBalance != this.balance) {
throw;
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the contract that defines fundBalance and balance, then review how modifiers and invariant checks are currently handled. Clarify the intended precondition and postcondition behavior, including failure handling, before choosing an implementation. Done means the agreed modifier behavior is implemented and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.