remix调用合约方法错误:Failed to decode output

在用remix部署合约,调用合约方法时,有时候出现error: Failed to decode output: TypeError: Cannot read property 'length' of undefined 。这是因为部署合约时gasLimit太低了,导致合约还没有部署成功。调用的合约一直都是假的合约。只要把gasLimit调高,重新部署下就行了。

参考文档:https://ethereum.stackexchange.com/questions/49103/failed-to-decode-output-typeerror-cannot-read-property-length-of-undefined

猜你喜欢

转载自my.oschina.net/u/2601303/blog/1816516