Skip to content

Instantly share code, notes, and snippets.

@kvutien
Created January 8, 2021 11:04
Show Gist options
  • Save kvutien/4de10ba6f134da25158b6eb2d5c28e53 to your computer and use it in GitHub Desktop.
Save kvutien/4de10ba6f134da25158b6eb2d5c28e53 to your computer and use it in GitHub Desktop.
Updated solidity code for Zubair Ahmed
ppragma solidity ^0.4.11;
contract ReactExample{
address private owner;
string public youAwesome;
string private secret;
function ReactExample() public {
owner = msg.sender;
youAwesome = 'You are awesome';
secret = 'secret data';
}
function kill() public {
require(owner == msg.sender);
selfdestruct(owner);
}
function getSecret() public returns(string){
return secret;
}
function() public payable{
revert();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment