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

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

Open
1 task done
eepstein opened this issue Nov 7, 2017 · 0 comments
Open
1 task done

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

eepstein opened this issue Nov 7, 2017 · 0 comments

Comments

@eepstein
Copy link

eepstein commented Nov 7, 2017


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: [email protected]
  • node version: 8.9.0
  • npm version: 5.5.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant