refactor(textual): Make Address field expert (#14651)
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
7505c18e2f
commit
a52d0a154c
8
x/tx/textual/internal/testdata/e2e.json
vendored
8
x/tx/textual/internal/testdata/e2e.json
vendored
File diff suppressed because one or more lines are too long
8
x/tx/textual/internal/testdata/tx.json
vendored
8
x/tx/textual/internal/testdata/tx.json
vendored
@ -51,7 +51,7 @@
|
||||
{ "text": "Chain id: my-chain" },
|
||||
{ "text": "Account number: 1" },
|
||||
{ "text": "Sequence: 2" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "expert": true },
|
||||
{ "text": "Public key: /cosmos.crypto.secp256k1.PubKey", "expert": true },
|
||||
{ "text": "PubKey object", "indent": 1, "expert": true },
|
||||
{ "text": "Key: 02EB DD7F E4FD EB76 DC8A 205E F65D 790C D30E 8A37 5A5C 2528 EB3A 923A F1FB 4D79 4D", "indent": 2, "expert": true },
|
||||
@ -120,7 +120,7 @@
|
||||
{ "text": "Chain id: my-chain" },
|
||||
{ "text": "Account number: 1" },
|
||||
{ "text": "Sequence: 2" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "expert": true },
|
||||
{ "text": "Public key: /cosmos.crypto.secp256k1.PubKey", "expert": true },
|
||||
{ "text": "PubKey object", "indent": 1, "expert": true },
|
||||
{ "text": "Key: 02EB DD7F E4FD EB76 DC8A 205E F65D 790C D30E 8A37 5A5C 2528 EB3A 923A F1FB 4D79 4D", "indent": 2, "expert": true },
|
||||
@ -190,7 +190,7 @@
|
||||
{ "text": "Chain id: my-chain" },
|
||||
{ "text": "Account number: 1" },
|
||||
{ "text": "Sequence: 2" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "expert": true },
|
||||
{ "text": "Public key: /cosmos.crypto.secp256k1.PubKey", "expert": true },
|
||||
{ "text": "PubKey object", "indent": 1, "expert": true },
|
||||
{ "text": "Key: 02EB DD7F E4FD EB76 DC8A 205E F65D 790C D30E 8A37 5A5C 2528 EB3A 923A F1FB 4D79 4D", "indent": 2, "expert": true },
|
||||
@ -336,7 +336,7 @@
|
||||
{ "text": "Chain id: my-chain" },
|
||||
{ "text": "Account number: 1" },
|
||||
{ "text": "Sequence: 2" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs" },
|
||||
{ "text": "Address: cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "expert": true },
|
||||
{ "text": "Public key: /cosmos.crypto.secp256k1.PubKey", "expert": true },
|
||||
{ "text": "PubKey object", "indent": 1, "expert": true },
|
||||
{ "text": "Key: 02EB DD7F E4FD EB76 DC8A 205E F65D 790C D30E 8A37 5A5C 2528 EB3A 923A F1FB 4D79 4D", "indent": 2, "expert": true },
|
||||
|
||||
@ -123,6 +123,7 @@ func (vr txValueRenderer) Format(ctx context.Context, v protoreflect.Value) ([]S
|
||||
|
||||
// Expert fields.
|
||||
expert := map[string]struct{}{
|
||||
"Address": {},
|
||||
"Public key": {},
|
||||
"Fee payer": {},
|
||||
"Fee granter": {},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user