-
Notifications
You must be signed in to change notification settings - Fork 4.5k
cli: solana-tokens, validate inputs gracefully #33926
cli: solana-tokens, validate inputs gracefully #33926
Conversation
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.
Awesome, the upfront parsing is a great improvement! Thanks for implementing that.
I've added a few suggestions. You'll also want to run cargo clippy
to catch a little lint. I'll run CI on this after your next push.
30dfbaa
to
b9c5a07
Compare
Fixed couple other "typos" too, thanks for reviewing @CriesofCarrots ! Should be ready for another round. |
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.
This is looking really close! A couple small suggestions, and then please rebase on #33937 and update those helpers in spl_token.rs.
b9c5a07
to
67cc4cd
Compare
67cc4cd
to
a77649e
Compare
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.
This code looks great! A couple last nits from me in the unit test.
I'll also kick off CI now; feel free to hold off more pushes until we see if that turns up anything I've missed.
Ah, |
Apologies for this one, I need some time to get used to Rust tooling. Fixed, hopefully. |
Codecov Report
@@ Coverage Diff @@
## master #33926 +/- ##
========================================
Coverage 81.9% 81.9%
========================================
Files 809 809
Lines 218250 218396 +146
========================================
+ Hits 178793 178946 +153
+ Misses 39457 39450 -7 |
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.
Looks good to me. Thanks for the contribution, and for all the polish!
Problem
Resolves #16489.
Summary of Changes
Hey @CriesofCarrots, I took this task on to get a bit more comfortable with Rust, lets see if it fits what you had in mind.