HQ20 / contracts

A set of reusable smart-contracts

Home Page:https://hq20-contracts.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactoring `Voting.enact()` - Multiple proposals

alcueca opened this issue · comments

Do we need multiple proposals into Voting.sol?

I think that it is cleaner to allow one single enact() call in Voting.sol.

There are several ways to allow multiple calls to happen as a result of a voting:

  • A function containing them in the contract function called by enact().
  • A state machine where enact() allows to change to a state where several functions are allowed.