Skip to content

Instantly share code, notes, and snippets.

@nazariyv
Created November 22, 2020 11:19
Show Gist options
  • Save nazariyv/1882b7c08265ca9019444e3bda876c3d to your computer and use it in GitHub Desktop.
Save nazariyv/1882b7c08265ca9019444e3bda876c3d to your computer and use it in GitHub Desktop.
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