Last active
March 27, 2020 17:37
-
-
Save johnsoncarl/480aee528f35b8579c7dcf87c61c59d2 to your computer and use it in GitHub Desktop.
Day14 blog of 20days blog series.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Test { | |
bool flag; | |
address[] listAddresses; | |
constructor() public{ | |
flag = true; | |
} | |
function ifillArray() public { | |
if(listAddresses.length<1500) { | |
for(uint i=0;i<500;i++) { | |
listAddresses.push(msg.sender); | |
} | |
flag = false; | |
} else { | |
listAddresses = new address[](0); | |
flag = true; | |
} | |
} | |
function echidna_mustFail() public view returns (bool){ | |
return flag; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment