【区块链】TestRPC Runtime Error: out of gas
来源:互联网 发布:网络上消费者投诉电话 编辑:程序博客网 时间:2024/06/07 15:41
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);});
阅读全文
0 0
- 【区块链】TestRPC Runtime Error: out of gas
- TestRPC Runtime Error: out of gas
- goLang panic: runtime error: slice bounds out of range
- 区块链中GAS介绍
- 区块链开发(六)truffle使用入门和testrpc安装
- slice 切片删除 panic: runtime error: slice bounds out of range
- JVM out of memory error
- Out of memory Error (5.0)
- Linux Out of memory error
- Visual C++ 2008 runtime files are out of data
- tomcat "out of memory" error 的解决办法
- Flex ant out of memory error.
- ORA-27102: Out of memory error
- Out of memory error in Eclipse
- Eclispse Out Of Memory Error Solution
- An out of memory error has occurred.
- svn commit error( out of date )
- Out of bag error in Random Forest
- 使用c++语言写个hello world
- P1156 垃圾陷阱
- Idea(Mac) 安装 PlantUML
- 封装模板
- 达人篇:1)简单易懂的质量管理-写在达人篇开篇
- 【区块链】TestRPC Runtime Error: out of gas
- hadoop中NameNode、DataNode、Secondary、NameNode、JobTracker TaskTracker介绍
- Qt下使用微软的TTS
- 二叉树的遍历
- 考研数学
- 按钮防抖(防止重复点击)
- MT 110 Advice of Cheque(s)通知支票情况
- ios-GADBannerView设置背景图片
- 序列会扩展知识