Skip to content

Commit b8c074b

Browse files
committed
Improve GROUP_INDEX_FLAG documentation
1 parent b35c91c commit b8c074b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

solidity/contracts/libraries/operator/Groups.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ library Groups {
1414
// to distinguish the group `0` from null.
1515
// The flag is toggled with bitwise XOR (`^`)
1616
// which keeps all other bits intact but flips the flag bit.
17+
// The flag should be set before writing to `groupIndices`,
18+
// and unset after reading from `groupIndices`
19+
// before using the value.
1720
uint256 constant GROUP_INDEX_FLAG = 1 << 255;
1821

1922
struct Group {

0 commit comments

Comments
 (0)