Last active
July 3, 2018 15:09
-
-
Save MichalZalecki/948ff28f0463bd6f4b646c038a3455ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const SimpleToken = artifacts.require("./SimpleToken.sol"); | |
const PresaleCrowdsale = artifacts.require("./02-presale-multiple-rounds/PresaleCrowdsale.sol"); | |
module.exports = (deployer, network, [owner]) => { | |
return deployer | |
.then(() => deployer.deploy(SimpleToken, "Tooploox", "TPX", 18, 21000000)) | |
.then(() => deployer.deploy(PresaleCrowdsale, 10000, owner, SimpleToken.address, owner)) | |
.then(() => SimpleToken.deployed()) | |
.then(token => token.increaseApproval(PresaleCrowdsale.address, 1000000 * (10 ** 18))); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment