ConsenSysMesh / ConsenSysMesh/singulardtv-contracts
checkInvariants for both pre and post conditions
- 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