Skip to content

Instantly share code, notes, and snippets.

@MichalZalecki
Last active July 3, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichalZalecki/948ff28f0463bd6f4b646c038a3455ff to your computer and use it in GitHub Desktop.
Save MichalZalecki/948ff28f0463bd6f4b646c038a3455ff to your computer and use it in GitHub Desktop.
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