We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8b7524 + 5bfa17e commit 8ef863cCopy full SHA for 8ef863c
program-analysis/echidna/property-creation.md
@@ -162,7 +162,7 @@ We want Echidna to spend most of the execution exploring the contract to test. S
162
```solidity
163
function depositShares_never_reverts(uint256 val) public {
164
if(token.balanceOf(address(this)) > 0) {
165
- val = val % token.balanceOf(address(this));
+ val = val % (token.balanceOf(address(this)) + 1);
166
try c.depositShares(val) { /* not reverted */ } catch { assert(false); }
167
assert(c.getShares(address(this)) > 0);
168
} else {
0 commit comments