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/calls.sol

37 lines
614 B

contract Caller {
address public fixed_address;
address public stored_address;
uint256 statevar;
constructor(address addr) public {
fixed_address = address(0x552254CbAaF32613C6c0450CF19524594eF84044);
}
function thisisfine() public {
fixed_address.call("");
}
function reentrancy() public {
fixed_address.call("");
statevar = 0;
}
function calluseraddress(address addr) public {
addr.call("");
}
function callstoredaddress() public {
stored_address.call("");
statevar = 0;
}
function setstoredaddress(address addr) public {
stored_address = addr;
}
}