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) {
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);
});
}