mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
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.
20 lines
502 B
20 lines
502 B
7 years ago
|
contract Under {
|
||
|
|
||
|
mapping(address => uint) balances;
|
||
|
uint public totalSupply;
|
||
|
|
||
|
function Token(uint _initialSupply) {
|
||
|
balances[msg.sender] = totalSupply = _initialSupply;
|
||
|
}
|
||
|
|
||
|
function sendeth(address _to, uint _value) public returns (bool) {
|
||
|
require(balances[msg.sender] - _value >= 0);
|
||
|
balances[msg.sender] -= _value;
|
||
|
balances[_to] += _value;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function balanceOf(address _owner) public constant returns (uint balance) {
|
||
|
return balances[_owner];
|
||
|
}
|
||
|
}
|