Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Default values for 'gas' and 'gasPrice' are different between docs and code #282

Open
barakman opened this issue Jan 23, 2019 · 0 comments

Comments

@barakman
Copy link

barakman commented Jan 23, 2019

Pretty sure I've reported this before, but unable to find it for some reason...

In the docs:

  • gas: Gas limit used for deploys. Default is 4712388.
  • gasPrice: Gas price used for deploys. Default is 100000000000 (100 Shannon).

In the code:

  var default_tx_values = {
    gas: 6721975,
    gasPrice: 20000000000, // 20 gwei,
    from: null
  };

This is also true in earlier versions, for example, Truffle 4.1.15:

  var default_tx_values = {
    gas: 6721975,
    gasPrice: 100000000000, // 100 Shannon,
    from: null
  };
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants