Skip to content

Commit

Permalink
1秒後が開始時刻だと、migration時に例外を出す
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotaky committed Dec 10, 2017
1 parent 70b7a45 commit 3274487
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
var OkashiKingdomTokenCrowdsale = artifacts.require("./OkashiKingdomTokenCrowdsale.sol");

module.exports = function(deployer, network, accounts) {
// const startTime = web3.eth.getBlock(web3.eth.blockNumber).timestamp + 1
// const endTime = startTime + (86400 * 20)
// const rate = new web3.BigNumber(1000)
// const wallet = accounts[0]
const startTime = web3.eth.getBlock(web3.eth.blockNumber).timestamp + 120
const endTime = startTime + (86400 * 20)
const rate = new web3.BigNumber(1000)
const wallet = accounts[0]

// deployer.deploy(OkashiKingdomTokenCrowdsale, startTime, endTime, rate, wallet)
deployer.deploy(OkashiKingdomTokenCrowdsale);
deployer.deploy(OkashiKingdomTokenCrowdsale, startTime, endTime, rate, wallet)
};

0 comments on commit 3274487

Please sign in to comment.