GithubHelp home page GithubHelp logo

ethereum-ico-examples's People

Contributors

mariuszzak avatar michalzalecki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ethereum-ico-examples's Issues

how to fix “insufficient funds for gas * price + value”?

I am using Windows 10 Home x64
I also posted the same question at Stackoverflow:
https://stackoverflow.com/questions/53312840/how-to-fix-insufficient-funds-for-gas-price-value

This is my truffle.js:
ropsten: { provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey), network_id: 3, gas: 4000000 },

when I truffle migrate --network ropsten:
it triggers this error:
Running migration: 1_initial-migration.js Deploying Migrations... Error encountered, bailing. Network state unknown. Review successful transactions manually. insufficient funds for gas * price + value

ICO 3 - complex distribution

Token migration:

  • Deploy n token vesting contracts
  • Deploy token
  • Transfer tokens to vesting contracts
  • Deploy Crowdsale
  • Transfer remaning tokens to crowdsale

Error encountered, bailing. Network state unknown. Review successful transactions manually. replacement transaction underpriced

`sh-3.2# truffle migrate --network ropsten
Using network 'ropsten'.

Running migration: 4_multi-beneficiary-token-vesting.js
Running step...
Replacing SimpleToken...
... 0xc62f6eedb5e3da6663766ac2d0e8b53075e912b500e33e0dfd7affacd869c496
SimpleToken: 0xd2d686b16e0a98a3ef1cbb7d43b3e0960250e139
Deploying MultiBeneficiaryTokenVesting...
... 0x23b5025fe52df23aec97bc3009cefb2eb3725d51d48741b63b79952a04642b78
MultiBeneficiaryTokenVesting: 0x951db468c290f0651ac105062e2f3e4618b379de
... 0xa64ca323a5b42164cc2ebf78e1dea594a414f206d4c46ad6f70e0cac9fdf4ada
Deploying GenericCrowdsale...
... 0xc681a75dfe274109e5f895322d7cb9daa4291428d19d0687f8cfe970e3a2f877
Error encountered, bailing. Network state unknown. Review successful transactions manually.
replacement transaction underpriced`

`ropsten: {
  provider: new HDWalletProvider(MNEMONIC, "https://ropsten.infura.io/R34FZKF26EAVJSIX9UKMBQVP7A5493Z18M"),
  network_id: 3,
  // from: "0xEf4a847BDE8341336bFB97FbDc1B642B9bCA242C",
  gas: 4800000
},`

I got Error revert SafeMath: subtraction overflow while migration

I am using the following
Truffle v5.0.22 (core: 5.0.22)
Solidity - 0.5.0 (solc-js)
Node v10.16.0
Web3.js v1.0.0-beta.37
openzeppelin-solidity 2.3

while migrating the 2_generic-crowdsale.js I got following error

Transfering Token... Error: Error: Error: Returned error: VM Exception while processing transaction: revert SafeMath: subtraction overflow -- Reason given: SafeMath: subtraction overflow. at Object.run (/usr/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:92:1) at process._tickCallback (internal/process/next_tick.js:68:7) Truffle v5.0.22 (core: 5.0.22) Node v10.16.0

Here I am calling the transfer method by converting the amount in string otherwise got the "Error: invalid number value (arg="amount", coderType="uint256", value=2e+25)" erro.

await token.transfer(GenericCrowdsale.address, "20000000000000000000000000", {from: owner});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.