github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-istanbul/self-destruct.sol (about) 1 pragma solidity >0.6.0; 2 contract Storage { 3 address payable private owner; 4 uint256 number; 5 6 constructor() { 7 owner = payable(msg.sender); 8 } 9 10 function store(uint256 num) public { 11 number = num; 12 } 13 14 function retrieve() public view returns (uint256){ 15 return number; 16 } 17 18 function close() public { 19 selfdestruct(owner); 20 } 21 }