{"size": 582, "ext": "js", "max_stars_repo_path": "migrations/2_deploy_contracts.js", "max_stars_repo_name": "Jake-Gillberg/priority-voting", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "migrations/2_deploy_contracts.js", "max_issues_repo_name": "Jake-Gillberg/priority-voting", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "migrations/2_deploy_contracts.js", "max_forks_repo_name": "Jake-Gillberg/priority-voting", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.25, "max_line_length": 66, "alphanum_fraction": 0.6701030928}
var ERC20Voting = artifacts.require("./ERC20Voting.sol");
var TestERC20 = artifacts.require("./TestERC20.sol");

module.exports = function(deployer, network) {
  var tokenAddress = '0x168296bb09e24A88805CB9c33356536B980D3fC5';

  let erc20Deployed;
  if (network != "live") {
    erc20Deployed = (
      deployer.deploy(TestERC20)
        .then(function() {
          tokenAddress = TestERC20.address;
        })
    )
  } else {
    erc20Deployed = Promise.resolve(undefined);
  }

  erc20Deployed.then(function() {
    return deployer.deploy(ERC20Voting, tokenAddress);
  });

};
