encointer / encointer-parachain

The common good parachain for Kusama
https://encointer.org
GNU General Public License v3.0
9 stars 13 forks source link

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

Open brenzi opened 1 year ago

brenzi commented 1 year ago

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