From 3eeca90492f861ea08af107a90fe0fe1642e000f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Thu, 18 Oct 2018 16:22:40 -0300 Subject: [PATCH] Made SampleCrowdsale a bit clearer. --- contracts/examples/SampleCrowdsale.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contracts/examples/SampleCrowdsale.sol b/contracts/examples/SampleCrowdsale.sol index 6e127222324..d22598092de 100644 --- a/contracts/examples/SampleCrowdsale.sol +++ b/contracts/examples/SampleCrowdsale.sol @@ -4,17 +4,15 @@ import "../crowdsale/validation/CappedCrowdsale.sol"; import "../crowdsale/distribution/RefundableCrowdsale.sol"; import "../crowdsale/emission/MintedCrowdsale.sol"; import "../token/ERC20/ERC20Mintable.sol"; +import "../token/ERC20/ERC20Detailed.sol"; /** * @title SampleCrowdsaleToken * @dev Very simple ERC20 Token that can be minted. * It is meant to be used in a crowdsale contract. */ -contract SampleCrowdsaleToken is ERC20Mintable { - - string public constant name = "Sample Crowdsale Token"; - string public constant symbol = "SCT"; - uint8 public constant decimals = 18; +contract SampleCrowdsaleToken is ERC20Mintable, ERC20Detailed { + constructor() public ERC20Detailed("Sample Crowdsale Token", "SCT", 18) {} } /** @@ -24,6 +22,8 @@ contract SampleCrowdsaleToken is ERC20Mintable { * In this example we are providing following extensions: * CappedCrowdsale - sets a max boundary for raised funds * RefundableCrowdsale - set a min goal to be reached and returns funds if it's not met + * MintedCrowdsale - assumes the token can be minted by the crowdsale, which does so + * when receiving purchases. * * After adding multiple features it's good practice to run integration tests * to ensure that subcontracts works together as intended.