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