In the ProposalCreated mappings, the condition for checking proposalDetails.type === "UpdateGlobalNftLimit" does not exist. And since the ProposalCreated mappings throw an error for unimplemented/unsupported proposal types, this mapping would throw an exception when the UpdateGlobalNftLimit proposal type is unfiltered (in future runtime upgrade) and a proposal is created of this type.
Context
Discovered while working on #4842
In the
ProposalCreated
mappings, the condition for checkingproposalDetails.type === "UpdateGlobalNftLimit"
does not exist. And since theProposalCreated
mappings throw an error for unimplemented/unsupported proposal types, this mapping would throw an exception when theUpdateGlobalNftLimit
proposal type is unfiltered (in future runtime upgrade) and a proposal is created of this type.https://github.com/Joystream/joystream/blob/d1448236349154afa2c1a725f7144990c37d5042/query-node/mappings/src/proposals.ts#L306
Fix
Handle the
UpdateGlobalNftLimit
proposal type in the mapping