I have updated my truffle version to the latest
v5.0.3. By running
truffle version, I can get the following version statements.
Truffle v5.0.3 (core: 5.0.3) Solidity v0.5.0 (solc-js) Node v10.8.0
However, this update stops me from executing some tutorials that were supposed to work. Especially, the ZOS tutorial at https://docs.zeppelinos.org/docs/upgrading.html, when running commands
myContract.x().toString() in Truffle Console. Instead of showing a numerical result, the console kept showing
undefined. The same problem happened for the case of running
I am not sure whether the problem comes from a different use of cli command sets across versions. It took me hours to fix it. Therefore, if you encountered similar problems, I wish it can save you time.