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

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

Merged
gnidan merged 1 commit into
ConsenSys-archive:developfrom
rkalis:block-limit-hex
Apr 3, 2020
Merged

Display all migration gas numbers in dec and hex formats#2916
gnidan merged 1 commit into
ConsenSys-archive:developfrom
rkalis:block-limit-hex

Conversation

@rkalis

@rkalis rkalis commented Mar 26, 2020

Copy link
Copy Markdown
Contributor

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 eggplantzzz and mikeseese and removed request for mikeseese March 26, 2020 16:52

@gnidan gnidan left a comment

Copy link
Copy Markdown
Contributor

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?

@CruzMolina CruzMolina left a comment

Copy link
Copy Markdown
Contributor

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

rkalis commented Apr 2, 2020

Copy link
Copy Markdown
Contributor Author

@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

gnidan commented Apr 3, 2020

Copy link
Copy Markdown
Contributor

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

I'm merging. Thanks again @rkalis !

@gnidan
gnidan merged commit 08180a0 into ConsenSys-archive:develop Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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