Created
January 8, 2021 11:04
-
-
Save kvutien/4de10ba6f134da25158b6eb2d5c28e53 to your computer and use it in GitHub Desktop.
Updated solidity code for Zubair Ahmed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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