Security analysis tool for EVM bytecode. Supports smart contracts built for Ethereum, Hedera, Quorum, Vechain, Roostock, Tron and other EVM-compatible blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mythril/tests/testdata/input_contracts/base_case.sol

22 lines
404 B

contract B{
uint x=0;
function incr() public returns(uint){
require(x==0);
x += 1;
}
function incr2() public payable returns(uint){
require(x==1);
x += 1;
}
function continous_incr() public payable returns(uint){
require(x>=2);
x += 1;
}
function destroy() public returns(uint){
selfdestruct(msg.sender);
}
}