Author

Topic: Truffle, 2_deploy_contract (constructor parameter) (Read 126 times)

newbie
Activity: 12
Merit: 1
I am trying to create the SampleCrowdsale contract (https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/examples/SampleCrowdsale.sol) in Truffle but how can i give the constructor the right parameter?

Code:
var SampleCrowdsaleToken = artifacts.require("./SampleCrowdsaleToken.sol");
var startTime = 1513728000;
var endTime = 1514592000;
var rate = 1;
var goal = 20;
var cap = 40;
var address = "0x...";
module.exports = function(deployer) {
  deployer.deploy(SampleCrowdsaleToken, startTime, endTime, rate , goal, cap, address);
};
 
Migrate works but he contract doesn't take the right parameter.

What's the problem?
Jump to: