-
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
refactor(textual): Use Title/Content
instead of Text
#14730
Conversation
…mos-sdk into am/14665-textual-screen
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.
utACK
…65-textual-screen
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.
utACK but looks good to me
type Screen struct { | ||
Text string text // possibly size limited to, e.g. 255 characters | ||
Indent uint8 // size limited to something small like 16 or 32 | ||
Title string // possibly size limited to, e.g. 64 characters |
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.
Consider "advised to X characters".
) | ||
|
||
// encode encodes an array of screens according to the CDDL: | ||
// | ||
// screens = [* screen] | ||
// screen = { | ||
// ? text_key: tstr, | ||
// ? title_key: tstr, | ||
// ? content_key: tstr, | ||
// ? indent_key: uint, | ||
// ? expert_key: bool, | ||
// } | ||
// text_key = 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.
Change to title_key = 1
.
"amount": [{ "denom": "uatom", "amount": "10000000" }] | ||
} | ||
], | ||
"messages": [{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "to_address": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t", "amount": [{ "denom": "uatom", "amount": "10000000" }] }], |
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.
Split the long line.
Description
Closes: #14665
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change