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

15 lines
287 B

contract StorageTest {
mapping(bytes32 => address) data;
function confirmAndCheck(uint256 x) public{
data[keccak256(abi.encodePacked(x))] = msg.sender;
}
function destruct(bytes32 x) public{
require(data[x] == msg.sender);
selfdestruct(data[x]);
}
}