chore: Clean-ups after Textual Title/Content PR (#14973)
This commit is contained in:
parent
0081563092
commit
833ca9f0f1
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
9
x/tx/textual/internal/testdata/tx.json
vendored
9
x/tx/textual/internal/testdata/tx.json
vendored
@ -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": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user