Skip to content

Conversation

@jbogacz
Copy link
Contributor

@jbogacz jbogacz commented Sep 24, 2018

Fixes #1026

🚀 Description

Introduced changes from PR #1338 which add BigInteger support for expectEvent.inLogs() function. This PR applies this feature to all test which previously were validating emitted events by logs.find() function.

  • [ +] 📘 I've reviewed the OpenZeppelin Contributor Guidelines
  • [ +] ✅ I've added tests where applicable to test my new functionality.
  • [ +] 📖 I've made sure that my contracts are well-documented.
  • [ +] 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:fix).

Copy link
Contributor

@nventuro nventuro left a comment

Choose a reason for hiding this comment

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

Woot, this is my favorite PR ever! Thanks a lot @jbogacz!

@nventuro nventuro merged commit 536262f into OpenZeppelin:master Sep 27, 2018
@jbogacz
Copy link
Contributor Author

jbogacz commented Sep 27, 2018

@nventuro glad to be of help, my friend :)

come-maiz pushed a commit that referenced this pull request Oct 21, 2018
* Add BigNumber support to expectEvent/inLogs (#1026)

* switched direct logs array check to expectEvent method in AllowanceCrowdsale.test.js

* Refactor expectEvent.inLogs function to use simple value number check

* Introduced should.be.bignumber method to compare BigNumber values

* Use expectEvent to test logs (#1232)

* Removed trailing space

(cherry picked from commit 536262f)
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.

Add BigNumber support to expectEvent/inLogs

2 participants