Commit 23074676 by Doug Crescenzi Committed by Nicolás Venturo

Improved documentation for _preValidatePurchase method in Crowdsale (#1101)

* Improved documentation for _preValidatePurchase in Crowdsale

* Added newline at EOF
parent 3c69cf65
......@@ -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.
* Example from CappedCrowdsale.sol's _preValidatePurchase method:
* super._preValidatePurchase(_beneficiary, _weiAmount);
* require(weiRaised.add(_weiAmount) <= cap);
* @param _beneficiary Address performing the token purchase
* @param _weiAmount Value in wei involved in the purchase
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment