mirror of https://github.com/crytic/slither
parent
d5c439c5d2
commit
eb1a848283
@ -0,0 +1,9 @@ |
||||
contract BaseContract{ |
||||
address owner; |
||||
|
||||
} |
||||
|
||||
contract DerivedContract is BaseContract{ |
||||
address owner; |
||||
|
||||
} |
@ -0,0 +1,21 @@ |
||||
contract BaseContract{ |
||||
address owner; |
||||
|
||||
modifier isOwner(){ |
||||
require(owner == msg.sender); |
||||
_; |
||||
} |
||||
|
||||
} |
||||
|
||||
contract DerivedContract is BaseContract{ |
||||
address owner; |
||||
|
||||
constructor(){ |
||||
owner = msg.sender; |
||||
} |
||||
|
||||
function withdraw() isOwner() external{ |
||||
msg.sender.transfer(this.balance); |
||||
} |
||||
} |
Loading…
Reference in new issue