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.07k stars 349 forks source link

Resolve correct module for council derive #5851

Closed TarikGul closed 5 months ago

TarikGul commented 5 months ago

This fix is related to https://github.com/polkadot-js/apps/issues/9914. In the specific case getModuleInstances will return what the typesBundle spec includes which can be generalCouncil for example when the decorated query module is council. What this little check does is ensure that the query module exists or resolves to the default expected module.

There was a previous discussion here that explains a bit more on the specific circumstance: https://github.com/polkadot-js/apps/issues/7790

polkadot-js-bot commented 5 months 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.