Fix for indexed reference type event arg in moby mask watcher

This commit is contained in:
2022-06-29 14:53:57 +05:30
committed by Ashwin Phatak
parent 6cb424b315
commit 14a32a7d47
3 changed files with 53 additions and 7 deletions
@@ -465,7 +465,7 @@ export class Indexer implements IPLDIndexerInterface {
case {{capitalize event.name}}_EVENT: {
eventName = logDescription.name;
{{#if event.params}}
const { {{#each event.params~}} {{this.name}} {{~#unless @last}}, {{/unless}} {{~/each}} } = logDescription.args;
const [ {{#each event.params~}} {{this.name}} {{~#unless @last}}, {{/unless}} {{~/each}} ] = logDescription.args;
{{/if}}
eventInfo = {
{{#each event.params}}