Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Accessing property name of undefined #3014

Closed
micahriggan opened this issue Aug 8, 2019 · 0 comments
Closed

Accessing property name of undefined #3014

micahriggan opened this issue Aug 8, 2019 · 0 comments
Labels
1.x 1.0 related issues Bug Addressing a bug

Comments

@micahriggan
Copy link
Contributor

micahriggan commented Aug 8, 2019

This line below will cause an unhandled, since event isn't defined

539     if (!event) {
540         throw new Error('Event "' + event.name + '" doesn\'t exist in this contract.');
541     }

https://github.com/ethereum/web3.js/blob/2022b17d52d31ce95559d18d5530d18c83eb4d1c/packages/web3-eth-contract/src/index.js#L540

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.x 1.0 related issues Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

2 participants