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

Error decoding address when try to connect at https://app.zeitgeist.pm/ using Polkadot.js Extension using latest runtime #2185

Closed
ltfschoen opened this issue Jan 16, 2024 · 1 comment · Fixed by #2236
Assignees
Milestone

Comments

@ltfschoen
Copy link
Contributor

when i try to click Connect Wallet and choose Polkadot.js using latest official release 0.44.1 of Polkadot.js Extension i get error in the browser console:Uncaught Error: Expected a valid key to convert, with length 1, 2, 4, 8, 32, 33

@ltfschoen
Copy link
Contributor Author

FYI, i published this issue on Polkaverse here https://polkaverse.com/@luke/polkadot-d-app-errors-when-handling-accounts-supplied-by-the-47114 and Dynatle solved the same error message Error: Expected a valid key to convert, with length 1, 2, 4, 8, 32, 33 in Polkaverse dApp here https://github.com/dappforce/polkaverse/pull/210/files#diff-ca62a13994aae3c545ad2d796d272f3ee8c0ab33b83bb3d5c023dc553b55f984R14, where they said the main issue was that before they convert the address directly, they were parsing it using formatBalance from polkadot js, which throws an error if the address is not valid. It can be invalid if the user connects using maybe talisman, and connect all of his accounts, including their EVM wallets. So the solution was to wrap it in try/catch.

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 a pull request may close this issue.

3 participants