Block chain Testrpc Runtime Error:out of gas__ block chain

Source: Internet
Author: User
TESTRPC Runtime Error:out Gas

Reproduced from: Here one, the problem description

  TRANSACTION:0X089D31B5316E7076268EA09DD86000DFA4316D72D98318440EB5684B619497F9 Gas
  usage:0x015f90
  block number:0x0b Block
  Time:sat Sep 2017 13:08:40 gmt+0800 (CST)
  Runtime error:out to Gas
Ii. New characteristics of TESTRPC

Reference: Here three, solution

modifying JavaScript files

Web3.eth.sendTransaction ({..., gas:3141592})//Select the appropriate gas limit

For example: I modified the app.js file to invoke the contract code

var meta;
Usermanagement.deployed (). Then (function (instance) {
    meta = instance;
    Meta.userRgister.sendTransaction (phone, {from:account, gas:3141592});
catch (function (e) {
    console.log (e);
});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.