Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
94692acb
Unverified
Commit
94692acb
authored
Oct 18, 2018
by
Nicolás Venturo
Committed by
GitHub
Oct 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Crowdsale docs improvements. (#1446)
* Added a small Crowdsale fallback gas warning. * Fixed a couple typos.
parent
384dff9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Crowdsale.sol
contracts/crowdsale/Crowdsale.sol
+6
-3
No files found.
contracts/crowdsale/Crowdsale.sol
View file @
94692acb
...
...
@@ -73,6 +73,9 @@ contract Crowdsale {
/**
* @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 {
buyTokens(msg.sender);
...
...
@@ -100,7 +103,7 @@ contract Crowdsale {
}
/**
* @return the mount of wei raised.
* @return the
a
mount of wei raised.
*/
function weiRaised() public view returns (uint256) {
return _weiRaised;
...
...
@@ -108,7 +111,7 @@ contract Crowdsale {
/**
* @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 {
...
...
@@ -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 tokenAmount Number of tokens to be purchased
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment