I am trying to update contract variable value and return value in the same function, It will return value if I deploy it on JavaScript VM but it returns null when I deploy contract on private network.
JavaScript VM:
Am I doing something wrong on my Private Network Setup ? What else could be the possible issue as everything else is entirely the same.