This repository was archived by the owner on Dec 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,25 +20,15 @@ library BucketDLLMock {
2020 return BucketDLL.getNext (_list, _id);
2121 }
2222
23- /// @notice Returns the address at the head of the `_list`.
24- /// @param _list The list from which to get the head.
25- /// @return The address of the head.
2623 function getHead (BucketDLL.List storage _list ) internal view returns (address ) {
2724 return _list.accounts[address (0 )].next;
2825 }
2926
30- /// @notice Returns the address at the tail of the `_list`.
31- /// @param _list The list from which to get the tail.
32- /// @return The address of the tail.
33- function getTail (BucketDLL.List storage _list ) internal view returns (address ) {
34- return _list.accounts[address (0 )].prev;
35- }
36-
37- /// @notice Returns the previous id address from the current `_id`.
38- /// @param _list The list to search in.
39- /// @param _id The address of the current account.
40- /// @return The address of the previous account.
4127 function getPrev (BucketDLL.List storage _list , address _id ) internal view returns (address ) {
4228 return _list.accounts[_id].prev;
4329 }
30+
31+ function getTail (BucketDLL.List storage _list ) internal view returns (address ) {
32+ return _list.accounts[address (0 )].prev;
33+ }
4434}
You can’t perform that action at this time.
0 commit comments