|
1 | 1 | //this migration file is used only for testing purpose
|
2 |
| -var constants = require('../test/constants'); |
| 2 | + |
3 | 3 | var Avatar = artifacts.require('./Avatar.sol');
|
4 | 4 | var DaoCreator = artifacts.require('./DaoCreator.sol');
|
5 | 5 | var GlobalConstraintRegistrar = artifacts.require('./GlobalConstraintRegistrar.sol');
|
@@ -34,20 +34,20 @@ var accounts;
|
34 | 34 | //Deploy test organization with the following schemes:
|
35 | 35 | //schemeRegistrar, upgradeScheme,globalConstraintRegistrar,simpleICO,contributionReward.
|
36 | 36 | module.exports = async function(deployer) {
|
37 |
| - deployer.deploy(ControllerCreator, {gas: constants.ARC_GAS_LIMIT}).then(async function(){ |
38 |
| - await deployer.deploy(DAOTracker, {gas: constants.ARC_GAS_LIMIT}); |
| 37 | + deployer.deploy(ControllerCreator).then(async function(){ |
| 38 | + await deployer.deploy(DAOTracker); |
39 | 39 | var daoTracker = await DAOTracker.deployed();
|
40 | 40 | var controllerCreator = await ControllerCreator.deployed();
|
41 |
| - await deployer.deploy(DaoCreator,controllerCreator.address,daoTracker.address, {gas: constants.ARC_GAS_LIMIT}); |
42 |
| - var daoCreatorInst = await DaoCreator.deployed(controllerCreator.address,{gas: constants.ARC_GAS_LIMIT}); |
| 41 | + await deployer.deploy(DaoCreator,controllerCreator.address,daoTracker.address); |
| 42 | + var daoCreatorInst = await DaoCreator.deployed(controllerCreator.address); |
43 | 43 | // Create DAOstack:
|
44 | 44 |
|
45 | 45 | await web3.eth.getAccounts(function(err,res) { accounts = res; });
|
46 | 46 | founders[0] = accounts[0];
|
47 | 47 | var returnedParams = await daoCreatorInst.forgeOrg(orgName, tokenName, tokenSymbol, founders,
|
48 |
| - initTokenInWei, initRepInWei,cap,{gas: constants.ARC_GAS_LIMIT}); |
| 48 | + initTokenInWei, initRepInWei,cap); |
49 | 49 | var AvatarInst = await Avatar.at(returnedParams.logs[0].args._avatar);
|
50 |
| - await deployer.deploy(AbsoluteVote,{gas: constants.ARC_GAS_LIMIT}); |
| 50 | + await deployer.deploy(AbsoluteVote); |
51 | 51 | // Deploy AbsoluteVote:
|
52 | 52 | var AbsoluteVoteInst = await AbsoluteVote.deployed();
|
53 | 53 | // Deploy SchemeRegistrar:
|
|
0 commit comments