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

polkadot js-apps and subscan decoding of cid digest is inconsistent #155

Open
brenzi opened this issue Nov 24, 2022 · 0 comments
Open

polkadot js-apps and subscan decoding of cid digest is inconsistent #155

brenzi opened this issue Nov 24, 2022 · 0 comments

Comments

@brenzi
Copy link
Member

brenzi commented Nov 24, 2022

It seems we have inconsistent display of our CommunityIdentifier type:

image

The same trouble is replicated on subscan as shown in these events:

base64 encoded for Aslah:
https://encointer.subscan.io/extrinsic/1689688-2

hex encoded for Leu:
https://encointer.subscan.io/event?address=&module=encointerbalances&event=transferred&startDate=&endDate=&startBlock=&endBlock=&timeType=date&version=8

It seems that the frontend just tries to decode to ASCII, which succeeds for Kigali and fails for Leu:

hex2ascii(0x77f79df7) => ��yß
hex2ascii(0x45387a38) => E8z8
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

No branches or pull requests

1 participant