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.
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.
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.
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 begeneralCouncil
for example when the decorated query module iscouncil
. 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