trufflesuite/drizzle-legacy

Better error message for invalid event name

rahulmutt opened this issue · 3 comments

It's fairly easy to make typos when specifying events to listen to and a really large stacktrace comes up if you do.

A basic check should be done inside of addContract that ensures that the specified event names match up with the contract ABI and throws a readable exception if an invalid event is specified.

Also willing to PR this one if there's no problem.

Thanks @rahulmutt! Fantastic idea to validate event names. Would love to see a PR

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if there is no reply to further comments.