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

在用remix部署合约,调用合约方法时,有时候出现error: Failed to decode output: TypeError: Cannot read property 'length' of undefined 。这是由于部署合约时gasLimit过低了,致使合约尚未部署成功。调用的合约一直都是假的合约。只要把gasLimit调高,从新部署下就好了。code

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

相关文章
相关标签/搜索