Unverified Commit 94692acb by Nicolás Venturo Committed by GitHub

Crowdsale docs improvements. (#1446)

* Added a small Crowdsale fallback gas warning.

* Fixed a couple typos.
parent 384dff9a
...@@ -73,6 +73,9 @@ contract Crowdsale { ...@@ -73,6 +73,9 @@ contract Crowdsale {
/** /**
* @dev fallback function ***DO NOT OVERRIDE*** * @dev fallback function ***DO NOT OVERRIDE***
* Note that other contracts will transfer fund with a base gas stipend
* of 2300, which is not enough to call buyTokens. Consider calling
* buyTokens directly when purchasing tokens from a contract.
*/ */
function () external payable { function () external payable {
buyTokens(msg.sender); buyTokens(msg.sender);
...@@ -100,7 +103,7 @@ contract Crowdsale { ...@@ -100,7 +103,7 @@ contract Crowdsale {
} }
/** /**
* @return the mount of wei raised. * @return the amount of wei raised.
*/ */
function weiRaised() public view returns (uint256) { function weiRaised() public view returns (uint256) {
return _weiRaised; return _weiRaised;
...@@ -108,7 +111,7 @@ contract Crowdsale { ...@@ -108,7 +111,7 @@ contract Crowdsale {
/** /**
* @dev low level token purchase ***DO NOT OVERRIDE*** * @dev low level token purchase ***DO NOT OVERRIDE***
* @param beneficiary Address performing the token purchase * @param beneficiary Recipient of the token purchase
*/ */
function buyTokens(address beneficiary) public payable { function buyTokens(address beneficiary) public payable {
...@@ -188,7 +191,7 @@ contract Crowdsale { ...@@ -188,7 +191,7 @@ contract Crowdsale {
} }
/** /**
* @dev Executed when a purchase has been validated and is ready to be executed. Not necessarily emits/sends tokens. * @dev Executed when a purchase has been validated and is ready to be executed. Doesn't necessarily emit/send tokens.
* @param beneficiary Address receiving the tokens * @param beneficiary Address receiving the tokens
* @param tokenAmount Number of tokens to be purchased * @param tokenAmount Number of tokens to be purchased
*/ */
......
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