Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display all migration gas numbers in dec and hex formats #2916

Merged
merged 1 commit into from Apr 3, 2020
Merged

Display all migration gas numbers in dec and hex formats #2916

merged 1 commit into from Apr 3, 2020

Conversation

rkalis
Copy link
Contributor

@rkalis rkalis commented Mar 26, 2020

closes #2799

  • Add decAndHex(num) utlity function that displays a number as decimal with hex in parenthesis
  • Use this utility in all migration messages that print gas

I wasn't sure what the versioning process is, so I left the versions as is. But since the dependencies are core depends on migrate depends on reporters, both reporters and migrate need a version bump to be included in core.

closes #2799
- Add decAndHex(num) utlity function that displays
  a number as decimal with hex in parenthesis
- Use this utility in all migration messages that print gas
@gnidan gnidan requested review from mikeseese and eggplantzzz and removed request for mikeseese March 26, 2020 16:52
Copy link
Contributor

@gnidan gnidan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat @rkalis! @eggplantzzz what do you think of this?

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rkalis is gas and blockLimit in gwei or wei?

Screen Shot 2020-04-02 at 8 40 51 AM

Screen Shot 2020-04-02 at 8 41 00 AM

@rkalis
Copy link
Contributor Author

rkalis commented Apr 2, 2020

@CruzMolina It should be in gas units. wei/gwei only come into play once you have to pay for the gas, which is unrelated to the limit or the amount of gas sent. Unless I'm misunderstanding what you mean?

@gnidan
Copy link
Contributor

gnidan commented Apr 3, 2020

People have had enough time if they wanted to object to this :)

I'm merging. Thanks again @rkalis !

@gnidan gnidan merged commit 08180a0 into trufflesuite:develop Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error message when exceeding block gas limit presents comparable numbers in different bases
3 participants