This is my contract:
pragma solidity ^0.4.18;
contract Signup {
string fStudentId;
string fLocation;
function setInfo(string _fStudentId, string _fLocation) public {
fStudentId = _fStudentId;
fLocation = _fLocation;
}
function getInfo() public constant returns (string, string) {
return (fStudentId, fLocation);
}
}
I put studentId & location in to block, and how do I get this info by using web3?
I try to use:
web3.eth.getBlock(7).then(console.log);
Where is my studentId & location? thanks!!!!!
