未捕获的错误:返回的值无效,是否用完了? [英] Uncaught Error: Returned values aren't valid, did it run Out of Gas?

查看:71
本文介绍了未捕获的错误:返回的值无效,是否用完了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在听我已部署合同的事件.每当事务完成并触发事件时,接收到响应都会导致以下错误:

I'm listening to events of my deployed contract. Whenever a transaction gets completed and event is fired receiving the response causes following error:

未捕获的错误:返回的值无效,是否用完了?在ABICoder.push ../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeParameters(index.js:227)在ABICoder.push ../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeLog(index.js:277)

Uncaught Error: Returned values aren't valid, did it run Out of Gas? at ABICoder.push../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeParameters (index.js:227) at ABICoder.push../node_modules/web3-eth-abi/src/index.js.ABICoder.decodeLog (index.js:277)

Web3版本:1.0.0-beta36

Web3 version: 1.0.0-beta36

元掩码版本:4.16.0

Metamask version: 4.16.0

如何解决?

推荐答案

尝试使用命令 truffle migration --reset ,以便将所有先前的值重置为其原始值

Try the command truffle migrate --reset so that all the previous values are reset to their original value

这篇关于未捕获的错误:返回的值无效,是否用完了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆