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

this is used in tests #1380

Merged
merged 18 commits into from
Oct 4, 2018
Merged

this is used in tests #1380

merged 18 commits into from
Oct 4, 2018

Conversation

Aniket-Engg
Copy link
Contributor

@Aniket-Engg Aniket-Engg commented Oct 4, 2018

Fixes #1200

this was preferred over global variables in tests.

@nventuro nventuro added kind:improvement tests Test suite and helpers. labels Oct 4, 2018
@nventuro nventuro self-requested a review October 4, 2018 11:37
@nventuro nventuro self-assigned this Oct 4, 2018
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.

Another blazing fast PR from @Aniket-Engg! Thanks for this :)

const initialCounter = await reentrancyMock.counter();
initialCounter.should.be.bignumber.equal(0);
this.reentrancyMock = await ReentrancyMock.new();
this.initialCounter = await this.reentrancyMock.counter();
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be added to this 😛

In fact, I seemed to have missed this line in #1216. It should be replaced with:

(await this.reentrancyMock.counter()).should.be.bignumber.equal(0);

Copy link
Contributor Author

@Aniket-Engg Aniket-Engg Oct 4, 2018

Choose a reason for hiding this comment

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

Those changes were done just before my break. 😄

@nventuro nventuro merged commit b41b125 into OpenZeppelin:master Oct 4, 2018
@Aniket-Engg Aniket-Engg deleted the fix/#1200 branch October 4, 2018 12:58
come-maiz pushed a commit that referenced this pull request Oct 21, 2018
* signing prefix added

* Minor improvement

* Tests changed

* Successfully tested

* Minor improvements

* Minor improvements

* Revert "Dangling commas are now required. (#1359)"

This reverts commit a688977.

* updates

* fixes #1200

* suggested change

(cherry picked from commit b41b125)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test suite and helpers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use this in tests
2 participants