Skip to content

Instantly share code, notes, and snippets.

@ajile-in
Last active March 14, 2018 01:45
Show Gist options
  • Save ajile-in/8a221ab8636605ddd6cae7001610f407 to your computer and use it in GitHub Desktop.
Save ajile-in/8a221ab8636605ddd6cae7001610f407 to your computer and use it in GitHub Desktop.
Simple Customer Contract
pragma solidity ^0.4.0;
contract CustomerContract {
string name;
function CustomerContract(string n) public {
name = n;
}
function viewCustomerName() public view returns (string) {
return name;
}
function setCustomerName(string newName) public {
name = newName;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment