refactor(textual): Make Address field expert (#14651)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Amaury 2023-01-17 20:23:41 +01:00 committed by GitHub
parent 7505c18e2f
commit a52d0a154c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -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 },

View File

@ -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": {},