-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved documentation for _preValidatePurchase method in Crowdsale #1101
Improved documentation for _preValidatePurchase method in Crowdsale #1101
Conversation
Thanks! I noticed however you rolled back two typo fixes, and changed |
ee549b7
to
1327bbb
Compare
Thanks for the heads up! Not sure how I did that? Should be all set now. |
Maybe remains from a branch merge? Should be fine now, thanks for the quick PR! |
contracts/crowdsale/Crowdsale.sol
Outdated
@@ -110,7 +110,10 @@ contract Crowdsale { | |||
// ----------------------------------------- | |||
|
|||
/** | |||
* @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use super to concatenate validations. | |||
* @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use `super` in contracts that inherit from Crowdsale to extend their validations. | |||
* @dev Example from CappedCrowdsale.sol's _preValidatePurchase method: |
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.
Nit: The second line shouldn't have a @dev
tag. It somehow messes up Solidity's NatSpec parser. We changed this across OpenZeppelin in #995.
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.
Thanks! Didn't realize that. Fixed!
e6e58c8
to
3058c37
Compare
Fixes #1096
馃殌 Description
Improved documentation for _preValidatePurchase in Crowdsale. Hopefully this makes it more clear how one can use
super
in contracts that inherit from Crowdsale in order to extend their validations.npm run lint:all:fix
).