I want to printthe value of iVar:
pragma solidity ^0.5.1;
contract PRetVal {
uint8 iVar =0;
function testFunc() public returns (uint8) {
iVar = iVar + 10;
return iVar;
}
}
I am trying the following :
truffle(development)> PR = await PRetVal.at(0x596D30c26211B4Dab998F63D6Bf5eba55B0B1d2D)
undefined
truffle(development)> await PR.getIVar
undefined truffle(development)>
But I am not getting any value. Somebody please guide me.
Zulfi.