【发布时间】:2019-02-03 14:43:54
【问题描述】:
我正在尝试迁移选举文件,但没有进行迁移。
我尝试运行 truffle migrate --reset 和重新迁移过程,但没有任何反应。
Elections.sol
pragma solidity ^0.5.0;
contracts Election{
string public candidate;
constructor() public{
candidate="Candidate 1"
}
}
2_deploy_contracts.js
var Election = artifacts.require("./Election.sol");
module.exports = function(deployer) {
deployer.deploy(Election);
};
【问题讨论】: