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

17 lines
254 B

pragma solidity ^0.4.18;
contract Token {
uint public withdrawMax = 10000000000000;
function withdraw(uint amount) public returns (uint) {
if ((amount * 1 ether) > withdrawMax) {
throw;
}
msg.sender.transfer(amount);
}
}