Skip to content

Instantly share code, notes, and snippets.

@ssky87
Created June 20, 2018 02:06
Show Gist options
  • Save ssky87/ea63435a9215269d83827ca06ba1d434 to your computer and use it in GitHub Desktop.
Save ssky87/ea63435a9215269d83827ca06ba1d434 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.21;
contract InfoContract {
string fName;
uint age;
event Instructor(
string name,
uint age
);
function setInfo(string _fName, uint _age) public {
fName = _fName;
age = _age;
emit Instructor(_fName, _age );
}
function getInfo() 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