gumdropsteve / SmartRPA

Neighbor to neighbor real estate transactions. Started in Nevada.
https://nevada-smart-rpa.herokuapp.com
2 stars 0 forks source link

Most Basic #3

Closed gumdropsteve closed 3 years ago

gumdropsteve commented 3 years ago

For most basic implementation...

gumdropsteve commented 3 years ago
pragma solidity >0.6.0;
contract Storage {
 address payable private owner;
 uint256 number;
 constructor() public {
  owner = msg.sender;
 }
 function store(uint256 num) public {
  number = num;
 }
 function retrieve() public view returns (uint256){
  return number;
 }

 function close() public { 
  selfdestruct(owner); 
 }
}

-source

gumdropsteve commented 3 years ago

https://rinkeby.etherscan.io/address/0x7939b08f38a6B6D98c8e1aA1D75F79D9C2e317AB

image