Skip to content

Instantly share code, notes, and snippets.

View Renaenys's full-sized avatar

Edwin (Rens) Renaenys

  • Malaysia
View GitHub Profile
Desktop/ERC20
└── [email protected]
Using network 'ropsten'.
Running migration: 1_initial_migration.js
Replacing Migrations...
... 0xcf49b50d20815f02646d7d4709c7d720a38812498d4ee663d7048ec5473bde9f
@Renaenys
Renaenys / My Contract
Created January 15, 2019 06:50
Deploy
const DesigniaCoinCrowdsale = artifacts.require('./DesigniaCoinCrowdsale.sol');
const DesigniaCoin = artifacts.require('./DesigniaCoin.sol');
module.exports = function(deployer, network, accounts) {
const openingTime = web3.eth.getBlock('latest').timestamp + 10; // two secs in the future
const closingTime = openingTime + 86400 * 365; // 365 days
const rate = new web3.BigNumber(1000);
const wallet = accounts[1];
return deployer