Skip to content
This repository was archived by the owner on Jun 14, 2018. It is now read-only.
This repository was archived by the owner on Jun 14, 2018. It is now read-only.

--dry-run gives a false error message #72

@eepstein

Description

@eepstein

Issue

False error message is shown when using the --dry-run flag. For example:

> truffle migrate --network rat --dry-run
Using network 'rat' (dry run).

tx has a higher gas limit than the block

That last line: tx has a higher gas limit than the block puzzled me for a while.
It turns out to be a spurious error message or warning.

Steps to Reproduce

add the --dry-run option on a migrate call.

Expected Behavior

Tell the user if the call would work. Or, if the call would not work, tell the user why.

Actual Results

It seems that --dry-run gives no gas or changes the gas. Anyway, it seems that an error message related to how --dry-run itself is implemented is what is shown to the user.

It's kind of confusing.

Environment

  • Operating System: Mac OS
  • Truffle version: 4.0.1
  • Ethereum Node: Geth 1.7.2-stable-1db4ecdc
  • Ethereum client: ethereumjs-testrpc@6.0.1
  • node version: 8.9.0
  • npm version: 5.5.1

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