Skip to content

Instantly share code, notes, and snippets.

@shayanb
Created October 10, 2018 19:05
Show Gist options
  • Save shayanb/8509abe91f7c3dd43ff32fd1be047739 to your computer and use it in GitHub Desktop.
Save shayanb/8509abe91f7c3dd43ff32fd1be047739 to your computer and use it in GitHub Desktop.
Assignment 2 for 6620 Class (Nov 2018)
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;
}
}
@PulpSpy
Copy link

PulpSpy commented Nov 6, 2024

Note, you might need to remove public from the constructor if using newer versions of Solidity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment