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