chore: Clean-ups after Textual Title/Content PR (#14973)

This commit is contained in:
Amaury 2023-02-09 14:18:44 +01:00 committed by GitHub
parent 0081563092
commit 833ca9f0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View File

@ -129,8 +129,8 @@ The SignDoc for `SIGN_MODE_TEXTUAL` is formed from a data structure like:
```go
type Screen struct {
Title string // possibly size limited to, e.g. 64 characters
Content string // possibly size limited to, e.g. 255 characters
Title string // possibly size limited to, advised to 64 characters
Content string // possibly size limited to, advised to 255 characters
Indent uint8 // size limited to something small like 16 or 32
Expert bool
}

View File

@ -22,7 +22,7 @@ var (
// ? indent_key: uint,
// ? expert_key: bool,
// }
// text_key = 1
// title_key = 1
// content_key = 2
// indent_key = 3
// expert_key = 4

View File

@ -71,7 +71,14 @@
"name": "tricky memo (starts with >, utf-8, trailing whitespaces)",
"proto": {
"body": {
"messages": [{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "to_address": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t", "amount": [{ "denom": "uatom", "amount": "10000000" }] }],
"messages": [
{
"@type": "/cosmos.bank.v1beta1.MsgSend",
"from_address": "cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs",
"to_address": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t",
"amount": [{ "denom": "uatom", "amount": "10000000" }]
}
],
"memo": "> ⚛️\\u269B⚛ "
},
"auth_info": {