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
1) Checking whether the user voted or not : mapping variable receiving proposal id (integer) and maps to another mapping variable (uint -> address -> boolean)
2) Address of the owner of the contract
3) mapping variable to store the number of proposals suggested by each user
3. functions
function add_project(string memory description) public less_than_limit(msg.sender)
function vote(uint256 proj_id, int256 vote_value) public existing_proj(proj_id) not_voted_for(proj_id)