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

33 lines
521 B

pragma solidity ^0.4.17;
contract Callee {
function theFunction() payable {
}
}
contract Caller {
address public fixed_address;
address public stored_address;
function Caller(address addr) {
fixed_address = addr;
}
function thisisfine() public {
Callee(fixed_address).theFunction();
}
function calluseraddress(address addr) {
addr.call();
}
function callstoredaddress() {
stored_address.call();
}
function setstoredaddress(address addr) {
stored_address = addr;
}
}