Skip to content

Instantly share code, notes, and snippets.

@johnsoncarl
Last active March 27, 2020 17:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Day14 blog of 20days blog series.
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