Merge pull request #350 from sc-forks/fix/amxx-seita
Update solidity-parser-antlr to ^0.4.7 (type keyword)pull/363/head
commit
f18389dd04
@ -0,0 +1,32 @@ |
||||
pragma solidity >0.4.99 <0.6.0; |
||||
|
||||
contract Account { |
||||
address public owner; |
||||
|
||||
constructor(address payable _owner) public { |
||||
owner = _owner; |
||||
} |
||||
|
||||
function setOwner(address _owner) public { |
||||
require(msg.sender == owner); |
||||
owner = _owner; |
||||
} |
||||
|
||||
function destroy(address payable recipient) public { |
||||
require(msg.sender == owner); |
||||
selfdestruct(recipient); |
||||
} |
||||
|
||||
function() payable external {} |
||||
} |
||||
|
||||
contract Factory { |
||||
|
||||
bytes32 private contractCodeHash; |
||||
|
||||
constructor() public { |
||||
contractCodeHash = keccak256( |
||||
type(Account).creationCode |
||||
); |
||||
} |
||||
} |
Loading…
Reference in new issue