791
社区成员
发帖
与我相关
我的任务
分享
constructor() public {
minter = msg.sender; //这个地方你好像拼写错误吧,矿工应该是miner
}
方案二:Mist好像不能选择编译器版本。你可以使用Remix IDE中编译和部署智能合约,在Compile选项卡中选择0.4.0版本的编译器;在Run选项卡中设置Environment为“Web3 Provider”然后连接你本地的以太坊节点,默认URL“http://localhost:8545”
参考资料:
构造函数语法:https://solidity.readthedocs.io/en/v0.4.22/contracts.html#creating-contracts
Remix IDE:以太坊官方提供的Solidify IDE工具,https://remix.ethereum.org/