【区块链】TestRPC Runtime Error: out of gas
2017-09-23 13:14
477 查看
TestRPC Runtime Error: out of gas
转载自:here一、 问题描述
Transaction: 0x089d31b5316e7076268ea09dd86000dfa4316d72d98318440eb5684b619497f9 Gas usage: 0x015f90 Block Number: 0x0b Block Time: Sat Sep 23 2017 13:08:40 GMT+0800 (CST) Runtime Error: out of gas
二、TestRPC新特性
参考:here三、解决方法
修改JavaScript文件web3.eth.sendTransaction({..., gas: 3141592})//选择合适的Gas限制
例如:我修改了app.js文件,调用合约的代码
var meta; UserManagement.deployed().then(function(instance) { meta = instance; meta.userRgister.sendTransaction(phone, {from: account, gas: 3141592}); }).catch(function(e){ console.log(e); });
相关文章推荐
- TestRPC Runtime Error: out of gas
- Caused by: java.lang.RuntimeException: by java.lang.OutOfMemoryError: PermGen space(tomcat 启动时提示内存溢出)
- Linux 集成环境mvn test 单元测试报错java.lang.OutOfMemoryError: PermGen space
- Caused by: java.lang.OutOfMemoryError: PermGen space
- 记一次 OutOfMemoryError: PermGen space 的解决
- Java 内存溢出(java.lang.OutOfMemoryError)的常见情况和处理方式总结
- 使用tomcat进行开发时发生java.lang.OutOfMemoryError:PermGen space
- java.lang.outofmemoryerror:permgen space
- Tomcat启动提示outofMemoryError(内存溢出)
- java.lang.OutOfMemoryError: Java heap space错误及处理办法(收集整理、转)
- java.lang.OutOfMemoryError:GC overhead limit exceeded
- java.lang.OutOfMemoryError:
- java.lang.OutOfMemoryError: PermGen space PermGen space 讲的不错
- Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget 急急
- Android_OutOfMemoryError
- Exception in thread java.lang.OutOfMemoryError: Java heap space
- Eclipse中通过Tomcat运行J2EE项目java.lang.OutOfMemoryError: PermGen space的解决方案
- windows下JConsole连接linux服务器java.lang.OutOfMemoryError: Java heap space
- tomat报错OutOfMemoryError:PermGen space解决方法 不改catalina.sh
- Weblogic java.lang.OutOfMemoryError: PermGen space