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

15 lines
339 B

pragma solidity 0.5.0;
contract HashForEther {
function withdrawWinnings() public payable {
// Winner if the last 8 hex characters of the address are 0.
if (uint32(msg.sender) == 0)
_sendWinnings();
}
function _sendWinnings() public {
msg.sender.transfer(address(this).balance);
}
}