I am writing a solidity public function that changes the value of state variable and then returns it.
pragma solidity >=0.4.22 <0.6.0;
contract white_label {
uint currentId = 1;
function uploaded() public returns(uint){
currentId++;
return(currentId - 1);
}
}
This functions returns value exactly as expected when run in Javascript VM
on Remix but when the contract is deployed on Ropsten Testnet, no value is returned from the function