@@ -4,17 +4,15 @@ import "../crowdsale/validation/CappedCrowdsale.sol";
4
4
import "../crowdsale/distribution/RefundableCrowdsale.sol " ;
5
5
import "../crowdsale/emission/MintedCrowdsale.sol " ;
6
6
import "../token/ERC20/ERC20Mintable.sol " ;
7
+ import "../token/ERC20/ERC20Detailed.sol " ;
7
8
8
9
/**
9
10
* @title SampleCrowdsaleToken
10
11
* @dev Very simple ERC20 Token that can be minted.
11
12
* It is meant to be used in a crowdsale contract.
12
13
*/
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 ) {}
18
16
}
19
17
20
18
/**
@@ -24,6 +22,8 @@ contract SampleCrowdsaleToken is ERC20Mintable {
24
22
* In this example we are providing following extensions:
25
23
* CappedCrowdsale - sets a max boundary for raised funds
26
24
* 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.
27
27
*
28
28
* After adding multiple features it's good practice to run integration tests
29
29
* to ensure that subcontracts works together as intended.
0 commit comments