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

gasPrice is being ignored #680

@tomasienrbc

Description

@tomasienrbc

Issue

Setting the "gasPrice" field in truffle.js is being ignore

Steps to Reproduce

Ideally done on testRPC:

  • Start testRPC
  • Drain the default wallet of most of your Ether
  • Change the "gasPrice" to something like "10" or "10000" or anything
  • truffle migrate --dry-run
  • You'll receive an error saying The upfront cost is: 471238800000000000 and the senders account only has: (some amount or 0)

Expected Behavior

Updating gasPrice should change the amount of Ether needed to run the transaction

Actual Results

Requires 471238800000000000 wei no matter what

Environment

  • Operating System: Mac
  • Truffle version: 4.0.0 and 4.0.1
  • Ethereum client: testRPC
  • node version: 6.0.0
  • npm version: 4.0.03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions