Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle case where an event is not defined in the ABI for the contract you are consuming. #4

Open
arevaklg opened this issue Dec 15, 2021 · 2 comments

Comments

@arevaklg
Copy link

ABIs do not need to be complete to be valid. There are reasons you might not want to make a full ABI public. In this case the parser simply fails into the error callback with cannot parse unknown event.

@AleG94
Copy link
Owner

AleG94 commented Apr 11, 2022

Hey @arevaklg, I believe both use cases are valid since you may want to protect yourself against missing events in the abi so I added a new option called ignoreUnknownEvents that you can set to true if you really want to ignore missing events.

Let me know what you think and I'll release it in the next version.

@arevaklg
Copy link
Author

I can totally get behind that as being a flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants