Skip to content

Instantly share code, notes, and snippets.

@idimitrov07
Created March 26, 2018 21:40
Show Gist options
  • Select an option

  • Save idimitrov07/e58cdf14f50176eac4d4ef89fc4acc6b to your computer and use it in GitHub Desktop.

Select an option

Save idimitrov07/e58cdf14f50176eac4d4ef89fc4acc6b to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.18;
contract Coursetro {
string fName;
uint age;
event Instructor(
string name,
uint age
);
function setInstructor(string _fName, uint _age) {
fName = _fName;
age = _age;
Instructor(_fName, _age);
}
function getInstructor() public constant returns(string, uint) {
return(fName, age);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment