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
251 B
20 lines
251 B
1 year ago
|
pragma solidity ^0.5.0;
|
||
|
|
||
|
|
||
|
|
||
|
contract SimpleModifier {
|
||
|
|
||
|
address payable public owner;
|
||
|
|
||
|
modifier onlyOwner() {
|
||
|
require(msg.sender == owner);
|
||
|
_;
|
||
|
}
|
||
|
|
||
|
|
||
|
function withdrawfunds() public onlyOwner {
|
||
|
owner.send(address(this).balance);
|
||
|
}
|
||
|
|
||
|
}
|