-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Introduce sdk.NewCoins #3813
Introduce sdk.NewCoins #3813
Conversation
1b3d030
to
a9e3abb
Compare
A constructor for |
Replaces literal sdk.Coins{}, guarantees coins are sorted and panics if there are duplicates.
a9e3abb
to
7b71d73
Compare
Codecov Report
@@ Coverage Diff @@
## develop #3813 +/- ##
===========================================
+ Coverage 60.86% 60.92% +0.06%
===========================================
Files 192 192
Lines 14288 14307 +19
===========================================
+ Hits 8696 8717 +21
+ Misses 5025 5024 -1
+ Partials 567 566 -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couple comments which would be nice to address, but looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor bits of feedback, but otherwise looks good!
Co-Authored-By: alessio <quadrispro@ubuntu.com>
Co-Authored-By: alessio <quadrispro@ubuntu.com>
Co-Authored-By: alessio <quadrispro@ubuntu.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read through this yesterday. Looks great! Gets a 👍 from me!
Replace sdk.Coins{} declarations with NewCoins() calls
that sanitize and validate input coins to construct a safe,
valid coin set.
Ref #2835
docs/
)PENDING.md
with issue #Files changed
in the github PR explorerFor Admin Use: