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

CappedToken mint modifiers removed #969

Merged
merged 2 commits into from
Jun 6, 2018
Merged

CappedToken mint modifiers removed #969

merged 2 commits into from
Jun 6, 2018

Conversation

alenl2
Copy link
Contributor

@alenl2 alenl2 commented May 31, 2018

🚀 Description

I removed onlyOwner and canMint modifiers in CappedToken since those are used in the super.mint method and onlyOwner was blocking minting when CappedToken was used together with RBACMintableToken.

I also updated the unit tests for CappedToken to test for MintableToken behaviour.

  • 📘 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:all:fix).

@shrugs
Copy link
Contributor

shrugs commented Jun 4, 2018

nice! and good catch on RBACMintableToken + Capped. Do you think it would be valuable to have a RBACCappedTokenMock is CappedToken, RBACMintableToken to test that combination's behavior?

@shrugs
Copy link
Contributor

shrugs commented Jun 4, 2018

and thanks for the mild test refactor, too 👍

@alenl2
Copy link
Contributor Author

alenl2 commented Jun 5, 2018

Sure thing. I did need to extract some behaviours to keep the tests clean and not duplicate them.

Copy link
Contributor

@shrugs shrugs left a comment

Choose a reason for hiding this comment

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

looks great to me!

@shrugs shrugs merged commit 5326e7c into OpenZeppelin:master Jun 6, 2018
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.

2 participants