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

g/wei math->primitives, some new helpers #14026

Merged
merged 1 commit into from
May 20, 2024
Merged

g/wei math->primitives, some new helpers #14026

merged 1 commit into from
May 20, 2024

Conversation

kasey
Copy link
Contributor

@kasey kasey commented May 20, 2024

What type of PR is this?

Other - cleanup

What does this PR do? Why is it needed?

  • moves Wei and Gwei, along with their methodsets and helper funcs, from math->primitives. These types were always a little out of place in the math package, they seem to belong with the other primitive types
  • replace blocks.PayloadValueToWei -> primitives.BigEndianBytesToWei. This is a general purpose helper which I think was defined in the consensus-types blocks package due to import issues. This change groups it with other g/wei operations and names it to describe the general purpose thing it does.

Other notes for review
This is part of the process of breaking up #13962 into smaller PRs

@kasey kasey requested a review from a team as a code owner May 20, 2024 14:58
@kasey kasey force-pushed the wei-tidier branch 2 times, most recently from cf8d48b to 405c46d Compare May 20, 2024 15:08
terencechain
terencechain previously approved these changes May 20, 2024
@kasey kasey enabled auto-merge May 20, 2024 15:27
@kasey kasey added this pull request to the merge queue May 20, 2024
Merged via the queue into develop with commit 9befb6b May 20, 2024
17 checks passed
@kasey kasey deleted the wei-tidier branch May 20, 2024 15:47
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.

3 participants