polkadot-js / apps

Basic Polkadot/Substrate UI for interacting with a Polkadot and Substrate node. This is the main user-facing application, allowing access to all features available on Substrate chains.
https://dotapps.io
Apache License 2.0
1.73k stars 1.52k forks source link

Regression / Identity: Judgements no longer possible #10493

Closed chevdor closed 2 months ago

chevdor commented 2 months ago

Setting the judgement via the "Add identity judgement" link on an account's view no longer works. The UI hangs.

image

with the error:

comm.88d5168f95c4b7c1.js:3892 Error: useCall(identity.identityOf):: Cannot read properties of undefined (reading 'hash'):: TypeError: Cannot read properties of undefined (reading 'hash')
    at transform (comm.88d5168f95c4b7c1.js:1724:919)
    at comm.88d5168f95c4b7c1.js:3892:41322
    at modu.c5e227c622fddc08.js:1:111325
    at modu.b05dd42ef8c37bcb.js:2:429403
    at u (comm.88d5168f95c4b7c1.js:3892:40118)
    at comm.88d5168f95c4b7c1.js:3892:41347
    at modu.c5e227c622fddc08.js:1:111325
    at modu.b05dd42ef8c37bcb.js:2:429403

I would rather have the behavior NOT change :)

chevdor commented 2 months ago

The issue can be seen on Polkadot and Kusama. The selected RPC endpoint does not matter.

TarikGul commented 2 months ago

https://github.com/polkadot-js/apps/pull/10491 should solve this.

TarikGul commented 2 months ago

@chevdor Let me know if this fixes your issue. Happy to close once confirmed.

chevdor commented 2 months ago

It does fix the issue, thx.

niklabh commented 2 months ago

Sorry, this has broken polkadex and older chains now.

TarikGul commented 2 months ago

@niklabh I guess our best route is to check the type to see if its a tuple or not then either do the legacy option or the new one.

polkadot-js-bot commented 2 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.