Prevent a single malformed event from preventing other Contract logs; reported on Discord.

This commit is contained in:
Richard Moore 2023-07-23 12:30:21 -04:00
parent 5a56fc36d7
commit b1375f4e44

@ -904,10 +904,12 @@ export class BaseContract implements Addressable, EventEmitterable<ContractEvent
} }
if (foundFragment) { if (foundFragment) {
return new EventLog(log, this.interface, foundFragment); try {
} else { return new EventLog(log, this.interface, foundFragment);
return new Log(log, provider); } catch (error) { }
} }
return new Log(log, provider);
}); });
} }