You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public func getResult() -> Bool
// post (returning (r, ##r is the percentage of votes))
{
var count: Int = 0
for let p: Address in participants {
if participantVotes[p] {
count += 1
}
}
return (count * 100 / numParticipants) >= 50
}
The value of variable count accumulates when after the loop, but our verification tool not yet has a way to verify this.
The text was updated successfully, but these errors were encountered:
In the same MajorityWithdraw.flint file, this get
The value of variable count accumulates when after the loop, but our verification tool not yet has a way to verify this.
The text was updated successfully, but these errors were encountered: