Created
October 10, 2018 19:05
-
-
Save shayanb/8509abe91f7c3dd43ff32fd1be047739 to your computer and use it in GitHub Desktop.
Assignment 2 for 6620 Class (Nov 2018)
This file contains 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.22; | |
contract assignmentTwo { | |
uint public studentNumber; | |
address public student; | |
constructor() public { | |
student = msg.sender; | |
} | |
function setStudentNumber(uint _studentNumber) public { | |
studentNumber = _studentNumber; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note, you might need to remove public from the constructor if using newer versions of Solidity.