Skip to content

Commit

Permalink
Prevent a single malformed event from preventing other Contract logs;…
Browse files Browse the repository at this point in the history
… reported on Discord.
  • Loading branch information
ricmoo committed Jul 23, 2023
1 parent 5a56fc3 commit b1375f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src.ts/contract/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,10 +904,12 @@ export class BaseContract implements Addressable, EventEmitterable<ContractEvent
}

if (foundFragment) {
return new EventLog(log, this.interface, foundFragment);
} else {
return new Log(log, provider);
try {
return new EventLog(log, this.interface, foundFragment);
} catch (error) { }
}

return new Log(log, provider);
});
}

Expand Down

0 comments on commit b1375f4

Please # to comment.