Is there any incompatibility issue of solidity 0.5.12 (or perhaps ^0.5) with web3 js v1.2.2 or with Geth v1.9? Because a contract in v0.4.24 works perfectly with given web3 version and Geth version, while the same contract in v0.5.12 (with syntax changes wherever required) keeps giving Error: Returned values aren't valid, did it run Out of Gas?

  • New constantinople/petersburg opcodes are required since solidity v0.5.5. See this answer to add them to your genesis file ethereum.stackexchange.com/a/68918. – Ismael Nov 3 '19 at 3:29
  • The Returned values aren't valid, did it run Out of Gas? is generally misleading, because it typically has nothing to do with gas, but with the fact that it couldn't decode your function. There's an open issue on this in Web3.js GitHub. Make sure that the function which you are trying to call is viable in your new contract (the one generated with solc 0.5.12). A wild guess: In your JS code, are you possibly passing the bin file that you've created via solc 0.4? – goodvibration Nov 3 '19 at 5:14
  • @Ismael - Thank you. That worked!! – learningOneErrorAtATime Nov 4 '19 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.