You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm install --save web3@1.0.0-beta.46
node app.js
(node:91820) UnhandledPromiseRejectionWarning: Error: Returned values aren't valid, did it run Out of Gas?
at AbiCoder.decodeParameters (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/web3/node_modules/web3-eth-abi/dist/web3-eth-abi.cjs.js:116:15)
at CallContractMethod.afterExecution (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/web3/node_modules/web3-eth-contract/dist/web3-eth-contract.cjs.js:720:34)
at CallContractMethod._callee$ (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/web3/node_modules/web3-core-method/dist/web3-core-method.cjs.js:457:39)
at tryCatch (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/Users/<username>/programming/learning_blockchain/web3_basic/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)
(node:91820) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:91820) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Steps to reproduce the behavior
see above
Error Logs
see above
Versions
[NPM 6.1.0, Node v9.11.1, web3@1.0.0-beta.46 , OS HightSierra 10.13.6, Macbook pro 13' late 2012]
The text was updated successfully, but these errors were encountered:
I've tested it with a standard ERC20 token and couldn't reproduce your issue. Could you create an example repository/branch or gist file which contains everything for testing it closer?
Simple nodejs program which calls totalSupply() from Dai smartcontract
Expected behavior
Actual behavior
Steps to reproduce the behavior
see above
Error Logs
see above
Versions
[NPM 6.1.0, Node v9.11.1, web3@1.0.0-beta.46 , OS HightSierra 10.13.6, Macbook pro 13' late 2012]
The text was updated successfully, but these errors were encountered: