Skip to content

Instantly share code, notes, and snippets.

@ChaiBapchya
Last active April 5, 2018 05:25
Show Gist options
  • Save ChaiBapchya/9f22f0275b9c9c1b24bee733f6e9f70a to your computer and use it in GitHub Desktop.
Save ChaiBapchya/9f22f0275b9c9c1b24bee733f6e9f70a to your computer and use it in GitHub Desktop.
Ethereum Blockchain Solidity sample contract
pragma solidity ^0.4.18;
contract Coursetro {
string fName;
uint age;
function setInstructor(string _fName, uint _age) public {
fName = _fName;
age = _age;
}
function getInstructor() view public returns (string, uint) {
return (fName, age);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment