-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert SampleCrowdsale and SampleCrowdsaleToken to initializers
- Loading branch information
Showing
3 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
import "../Initializable.sol"; | ||
import "../examples/SampleCrowdsale.sol"; | ||
|
||
|
||
contract SampleCrowdsaleTokenMock is Initializable, SampleCrowdsaleToken { | ||
constructor() public { | ||
SampleCrowdsaleToken.initialize(); | ||
} | ||
} | ||
|
||
contract SampleCrowdsaleMock is Initializable, SampleCrowdsale { | ||
constructor( | ||
uint256 openingTime, | ||
uint256 closingTime, | ||
uint256 rate, | ||
address wallet, | ||
uint256 cap, | ||
ERC20Mintable token, | ||
uint256 goal | ||
) | ||
public | ||
SampleCrowdsale(openingTime, closingTime, rate, wallet, cap, token, goal) | ||
{ | ||
SampleCrowdsale.initialize(openingTime, closingTime, rate, wallet, cap, token, goal); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters