Created
November 22, 2020 11:19
-
-
Save nazariyv/1882b7c08265ca9019444e3bda876c3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| pragma solidity >=0.6.0 <0.7.0; | |
| contract YourContract { | |
| event SetPurpose(address sender, string purpose); | |
| event Deployed(address this); | |
| string public purpose = "🛠 Programming Unstoppable Money"; | |
| constructor() public { | |
| emit Deployed(address(this)); | |
| } | |
| function setPurpose(string memory newPurpose) public { | |
| purpose = newPurpose; | |
| emit SetPurpose(msg.sender, purpose); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment