Truffle,2_deploy_contract(构造函数参数)

时间:2017-12-04 22:57:02

标签: solidity truffle

我正在尝试在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);
};

迁移有效但合同没有采用正确的参数。

有什么问题?

0 个答案:

没有答案