-
Notifications
You must be signed in to change notification settings - Fork 3
refactor!: Overhaul cycles handling - new amount formats, display changes, and cycles transfer command #293
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
Conversation
|
Notes from standup:
|
| // Display results | ||
| let _ = ctx.term.write_line(&format!( | ||
| "Minted {} TCYCLES to your account, new balance: {} TCYCLES.", | ||
| "Minted {} to your account, new balance: {}.", |
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.
| "Minted {} to your account, new balance: {}.", | |
| "Minted {} cycles to your account, new balance: {} cycles.", |
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.
The symbol is included in the struct that is displayed
| transfer_info.receiver, | ||
| transfer_info.block_index | ||
| "Transferred {} to {} in block {}", | ||
| transfer_info.transferred, transfer_info.receiver, transfer_info.block_index |
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.
Why not show the symbol here?
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.
Same here, it's in the displayed struct
TCYCLESin favor ofcyclescycles_is allowed and ignored:1_000parses to1000k,m,b,tsuffixes (case insensitive) to avoid typing a bunch of zeroes1_234.56Kparses to1234560