Assuming this contract:
contract getSome {
finalizeToken token;
constructor() {
token = finalizeToken(0xdc0974e65e479fa587118eb7588f426229a39d31);
}
function testWrite() public returns (bool) {
setval();
}
function setval() {
token.setEpoch(8000);
}
}
interface fToken {
function setEpoch(uint _blocks) external ;
}
contract finalizeToken is fToken {
uint public epochCount;
constructor() {}
function setEpoch(uint _blocks) public {
epochCount = _blocks;
}
}
For whatever reason the value of epochCount
on the finalizeToken
is not being updated when called trough the getSome
contract.
I've never encountered this before, so i'd appreciate some inputs
EDIT: Issue found, i was using ganache instead of ropsten and it need explicit sendTransaction
for making a call. I was using Remix with Ganache as Web3 provider, causing this behaviour.
Thanks!