Skip to content

Commit 5cdf4de

Browse files
nventurocome-maiz
authored andcommitted
Made SampleCrowdsale a bit clearer. (#1448)
1 parent a9bffb3 commit 5cdf4de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contracts/examples/SampleCrowdsale.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ import "../crowdsale/validation/CappedCrowdsale.sol";
44
import "../crowdsale/distribution/RefundableCrowdsale.sol";
55
import "../crowdsale/emission/MintedCrowdsale.sol";
66
import "../token/ERC20/ERC20Mintable.sol";
7+
import "../token/ERC20/ERC20Detailed.sol";
78

89
/**
910
* @title SampleCrowdsaleToken
1011
* @dev Very simple ERC20 Token that can be minted.
1112
* It is meant to be used in a crowdsale contract.
1213
*/
13-
contract SampleCrowdsaleToken is ERC20Mintable {
14-
15-
string public constant name = "Sample Crowdsale Token";
16-
string public constant symbol = "SCT";
17-
uint8 public constant decimals = 18;
14+
contract SampleCrowdsaleToken is ERC20Mintable, ERC20Detailed {
15+
constructor() public ERC20Detailed("Sample Crowdsale Token", "SCT", 18) {}
1816
}
1917

2018
/**
@@ -24,6 +22,8 @@ contract SampleCrowdsaleToken is ERC20Mintable {
2422
* In this example we are providing following extensions:
2523
* CappedCrowdsale - sets a max boundary for raised funds
2624
* RefundableCrowdsale - set a min goal to be reached and returns funds if it's not met
25+
* MintedCrowdsale - assumes the token can be minted by the crowdsale, which does so
26+
* when receiving purchases.
2727
*
2828
* After adding multiple features it's good practice to run integration tests
2929
* to ensure that subcontracts works together as intended.

0 commit comments

Comments
 (0)