Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change storage keys serde serialization to their string form #4349

Open
tzemanovic opened this issue Feb 6, 2025 · 0 comments
Open

change storage keys serde serialization to their string form #4349

tzemanovic opened this issue Feb 6, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@tzemanovic
Copy link
Member

tzemanovic commented Feb 6, 2025

Serde based serialization of the storage keys uses the inner segments, which is not very readable in e.g. JSON format (in for example tx result):

"changed_keys": [
        {
          "segments": [
            {
              "AddressSeg": "tnam1pyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqej6juv"
            },
            {
              "AddressSeg": "tnam1q9gr66cvu4hrzm0sd5kmlnjje82gs3xlfg3v6nu7"
            },
            {
              "StringSeg": "balance"
            },
            {
              "AddressSeg": "tnam1qgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc8j2fp"
            }
          ]
        },
...

instead, it should just be:

"changed_keys": [
    "#tnam1pyqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqej6juv/#tnam1q9gr66cvu4hrzm0sd5kmlnjje82gs3xlfg3v6nu7/balance/#tnam1qgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqc8j2fp",
...
@tzemanovic tzemanovic added the enhancement New feature or request label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant