Skip to content

Commit

Permalink
refactor: rename B0_BITMAP_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
detectivekim committed Jan 12, 2024
1 parent d16bbdc commit 02f6ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Heap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ library Heap {
error EmptyError();
error AlreadyExistsError();

uint256 public constant B0_BITMAP_KEY = uint256(keccak256("heap"));
uint256 public constant B0_BITMAP_KEY = uint256(keccak256("Heap"));
uint256 public constant MAX_UINT_256_MINUS_1 = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe;

function has(mapping(uint256 => uint256) storage heap, uint24 value) internal view returns (bool) {
Expand Down Expand Up @@ -57,7 +57,7 @@ library Heap {
mask = 1 << (b0b1 & 0xff);
uint256 b0 = b0b1 >> 8;
heap[B0_BITMAP_KEY] = heap[B0_BITMAP_KEY] | (1 << b0);
b0 = ~b0; // TODO add comment
b0 = ~b0;
heap[b0] = heap[b0] | mask;
}
}
Expand Down

0 comments on commit 02f6ec3

Please sign in to comment.