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

Change TokenAmount::from_whole to take any Into<BigInt> parameter #862

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

anorth
Copy link
Member

@anorth anorth commented Sep 11, 2022

This explicit u64 has been annoying downstream many times. Happily it should require no change in existing callers that pass u64.

FYI @ZenGround0

@anorth anorth requested a review from Stebalien September 11, 2022 23:26
@anorth
Copy link
Member Author

anorth commented Sep 11, 2022

@Stebalien should I pull into release/v2 branch after this ?

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2022

Codecov Report

Merging #862 (b3f9d01) into master (a9e2e77) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #862      +/-   ##
==========================================
+ Coverage   51.27%   51.29%   +0.02%     
==========================================
  Files         123      123              
  Lines       10065    10061       -4     
==========================================
  Hits         5161     5161              
+ Misses       4904     4900       -4     
Impacted Files Coverage Δ
shared/src/econ/mod.rs 75.74% <100.00%> (ø)
shared/src/version/mod.rs 3.70% <0.00%> (+0.47%) ⬆️

@Stebalien Stebalien merged commit 02e2c39 into master Sep 12, 2022
@Stebalien Stebalien deleted the anorth/tokenfromwhole branch September 12, 2022 16:29
@Stebalien
Copy link
Member

Merged and backported (I was cutting a release anyways).

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