Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. pragma solidity ^0.4.11;
  2.  
  3. contract HelloSystem {
  4.  
  5. address owner;
  6.  
  7. function HelloSystem() {
  8. owner = msg.sender;
  9. }
  10.  
  11. function remove() {
  12. if (msg.sender == owner) {
  13. selfdestruct(owner);
  14. }
  15. }
  16. }
  17.  
  18. truffle(development)> HelloSystem.deployed().then(function(instance){HS = HelloSystem.at(instance.address)})
  19. HS.owner.call().then(console.log)
  20. HS.owner
  21. HS.owner.call()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement