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

return event from expectEvent #129

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

chrisb87
Copy link
Contributor

@chrisb87 chrisb87 commented Aug 7, 2020

Fixes #93

This updates the expectEvent helper to return the found event, so we can make further assertions on it.

@frangio
Copy link
Contributor

frangio commented Aug 7, 2020

Thank you @chrisb87! I was sure that this was already the case but it seems we forgot about this part when the latest version of expectEvent was introduced.

Can you also add a test in the web3 test suite for expectEvent?

@chrisb87
Copy link
Contributor Author

chrisb87 commented Aug 7, 2020

Ah, I missed that second test suite, I just added that test @frangio.

Let me know if you'd like me to squash these commits before merging!

Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries. We squash on merge. Thank you!

@frangio frangio merged commit bf24bfe into OpenZeppelin:master Aug 10, 2020
frangio added a commit that referenced this pull request Aug 10, 2020
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

Successfully merging this pull request may close these issues.

expectEvent does not return the event object
2 participants