Context
Discovered while working on #4842
If the content Lead creates a video with an autoIssueNft parameter set, then the mappings would crash as mappings currently don't recognize Lead as a valid content actor. This issue is present in many other mappings such as OpenAuctionStarted, EnglishAuctionStarted, NFTIssued etc. because a common function (convertContentActorToChannelOrNftOwner) is used everywhere.
|
throw new Error('Not-implemented ContentActor type used') |
Fix
Gracefully handle actions by Lead as ContentActor
Context
Discovered while working on #4842
If the content Lead creates a video with an
autoIssueNftparameter set, then the mappings would crash as mappings currently don't recognizeLeadas a valid content actor. This issue is present in many other mappings such asOpenAuctionStarted,EnglishAuctionStarted,NFTIssuedetc. because a common function (convertContentActorToChannelOrNftOwner) is used everywhere.joystream/query-node/mappings/src/content/utils.ts
Line 446 in d144823
Fix
Gracefully handle actions by
LeadasContentActor