We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
leaves
1 parent adda0ea commit 5099eebCopy full SHA for 5099eeb
1 file changed
contracts/SortitionTree.sol
@@ -41,8 +41,8 @@ contract SortitionTree {
41
// branches[2][6]. Mappings are used in place of arrays for efficiency.
42
mapping(uint256 => mapping(uint256 => uint256)) internal branches;
43
44
- // A mapping from index => leaf, acting as an array. For example, to access
45
- // the 42nd (0-index) leaf, call leaves[42].
+ // A 0-index mapping from index => leaf, acting as an array. For example, to
+ // access the 42nd leaf, call leaves[41].
46
mapping(uint256 => uint256) internal leaves;
47
48
// the flagged (see setFlag() and unsetFlag() in Position.sol) positions
0 commit comments