Skip to content

Instantly share code, notes, and snippets.

@johnsoncarl
Last active March 27, 2020 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnsoncarl/480aee528f35b8579c7dcf87c61c59d2 to your computer and use it in GitHub Desktop.
Save johnsoncarl/480aee528f35b8579c7dcf87c61c59d2 to your computer and use it in GitHub Desktop.
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