Skip to content

[WIP] Encodes AccountId correctly#22

Merged
thewhaleking merged 5 commits intomainfrom
feat/thewhaleking/decode-account-id
May 12, 2025
Merged

[WIP] Encodes AccountId correctly#22
thewhaleking merged 5 commits intomainfrom
feat/thewhaleking/decode-account-id

Conversation

@thewhaleking
Copy link
Contributor

@thewhaleking thewhaleking commented May 8, 2025

Correctly decodes account Ids (SS58). Also no longer wraps everything in a tuple.

Fixes #16

Considerations: We should probably have a way to set flag this to decode or use the legacy undecoded. Otherwise we'll break backwards compatibility. This should not be released currently, because of this reason.

@thewhaleking thewhaleking requested review from a team and camfairchild May 9, 2025 11:43
@thewhaleking thewhaleking marked this pull request as ready for review May 9, 2025 11:43
Copy link
Contributor

@camfairchild camfairchild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also base it on the path maybe.
I doubt anything else has a length of 32 in a composite like this, but it's more robust.

@thewhaleking
Copy link
Contributor Author

Should also base it on the path maybe. I doubt anything else has a length of 32 in a composite like this, but it's more robust.

What do you mean?

@thewhaleking thewhaleking merged commit 3c6d295 into main May 12, 2025
12 checks passed
@thewhaleking thewhaleking deleted the feat/thewhaleking/decode-account-id branch May 12, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Decode ss58 into strings

3 participants