-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
this
is used in tests
#1380
Conversation
This reverts commit a688977.
There was a problem hiding this 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 :)
test/utils/ReentrancyGuard.test.js
Outdated
const initialCounter = await reentrancyMock.counter(); | ||
initialCounter.should.be.bignumber.equal(0); | ||
this.reentrancyMock = await ReentrancyMock.new(); | ||
this.initialCounter = await this.reentrancyMock.counter(); |
There was a problem hiding this comment.
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);
There was a problem hiding this comment.
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. 😄
Fixes #1200
this
was preferred over global variables in tests.(https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/CONTRIBUTING.md),
npm run lint:fix
).