polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.06k stars 342 forks source link

Fix api.derive.accounts.{info && identity} #5885

Closed TarikGul closed 1 month ago

TarikGul commented 1 month ago

closes: https://github.com/polkadot-js/api/issues/5883

Fixes

api.derive.accounts.identity api.derive.accounts.info

This fix ensure the derive for identity also takes into the account the new logic in the Peoples Chain.

The identity type IdentitiyInfo has 4 fields that have been added or changed:

---- additional
---- riot
+++ matrix
+++ github
+++ discord

This ensure it has support while also supporting the legacy structure.

Maybe I should add the new as PeopleIdentityInfo type to the augmented type generation? rel: https://github.com/polkadot-js/api/issues/5884

polkadot-js-bot commented 1 month ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.