Last active
March 14, 2018 01:45
-
-
Save ajile-in/8a221ab8636605ddd6cae7001610f407 to your computer and use it in GitHub Desktop.
Simple Customer Contract
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
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