Skip to content

Commit 745097f

Browse files
author
kylemao
committed
Ballot.sol
1 parent ec27961 commit 745097f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Ballot/contracts/Ballot.sol

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ pragma solidity ^0.8.0;
77

88
import "hardhat/console.sol";
99

10-
/// @title 委托投票
10+
/// @title 委托投票合约:
11+
/// 1. 目标是为每个(投票)表决创建一份合约,一个合约含有多个选项,每个选项有对应的简称。 合约的创造者——即为主席,
12+
/// 2. 主席可给予每个独立的地址以投票权。
13+
/// 3. 拥有投票权地址的人可以选择自己投票,或者委托给他们信任的人来投票。
14+
/// 4. 在投票时间结束时,winningProposal() 将返回获得最多投票的提案。
1115
contract Ballot {
1216

1317

0 commit comments

Comments
 (0)