我正在尝试在 Truffle 中创建 SampleCrowdsale 合同(https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/examples/SampleCrowdsale.sol),但我怎样才能给构造函数正确的参数?
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);
};
迁移有效,但他的合同没有采用正确的参数。
有什么问题?