I have a function which returns an uint, but actually gets an object - how is that converted.
e.g.
f
"0x91f35a1267f2c8d763f7a3fb35ffac845fcbb1417a64b030ed79cbaa4e29694f"
f
is defined as the return to the following function:
function testReturn() returns (uint) {
studentAge=90;
return 89;
}
There must be a way to convert the return from this function.
The contract is defined as:
contract CollegeAdmin {
uint8 public studentAge=21;
uint16 public studentIncome=15000;
uint8 public studentScore=4;
uint8 public studentAttendance=96;
function testReturn() returns (uint) {
studentAge=90;
return 89;
}
}
Hence f
is defined using:
f = con.testReturn()
Also, con
is defined:
con = eth.contract(abi).at(addr)
abi - abi for contract addr - contract address