Skip to content

Instantly share code, notes, and snippets.

@SamsadSajid
Last active May 16, 2018 13:40
Show Gist options
  • Save SamsadSajid/e8983a61bfb7e6cbdbf6b848eab968ce to your computer and use it in GitHub Desktop.
Save SamsadSajid/e8983a61bfb7e6cbdbf6b848eab968ce to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.17;
contract Inbox {
string public message;
function Inbox(string initialMessage) public {
message = initialMessage;
}
function setMessage(string newMessage) public {
message = newMessage;
}
function getMessage() public view returns (string){
return message;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment