Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
/ cosmos-sdk Public archive
forked from cosmos/cosmos-sdk

Commit

Permalink
chore: Clean-ups after Textual Title/Content PR (cosmos#14973)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored and tsenart committed Apr 12, 2023
1 parent 043912f commit 624ebf2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/architecture/adr-050-sign-mode-textual.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion x/tx/textual/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion x/tx/textual/internal/testdata/tx.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 624ebf2

Please sign in to comment.