Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. pragma solidity ^0.4.21;
  2.  
  3. contract InfoContract {
  4.  
  5. string fName;
  6. uint age;
  7.  
  8. event Instructor(
  9. string name,
  10. uint age
  11. );
  12.  
  13. function setInfo(string _fName, uint _age) public {
  14. fName = _fName;
  15. age = _age;
  16. emit Instructor(_fName, _age );
  17. }
  18.  
  19. function getInfo() public constant returns (string, uint) {
  20. return (fName, age);
  21. }
  22. }
Add Comment
Please, Sign In to add comment