Created
March 26, 2018 21:40
-
-
Save idimitrov07/e58cdf14f50176eac4d4ef89fc4acc6b to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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