Skip to content
Lattice

PrivateVotingStorage

Git Source

ERC-7201 namespaced storage for the PrivateVoting module.

APPEND-ONLY: new fields may only be added at the end to preserve the upgrade-safe layout.

Note:

  • storage-location: erc7201:lattice.storage.PrivateVoting
struct PrivateVotingStorage {
    /// @dev poll id (1-based) => poll.
    mapping(uint256 pollId => Poll poll) _polls;
    /// @dev number of polls created.
    uint256 _pollCount;
}

Properties

NameTypeDescription
_pollsmapping(uint256 pollId => Poll poll)
_pollCountuint256