版本升级之后,对类型检查更严格,现在需要做一下 string到 hex 的转换:
module.exports = function(deployer) {
deployer.deploy(safemath);
deployer.link(safemath, voting);
deployer.deploy(voting, [web3.utils.asciiToHex("Rama"), web3.utils.asciiToHex("Nick"), web3.utils.asciiToHex("Jose")]);
};