EnumerableSet: Remove Boundary Check in _at (#2606)
* remove boundary check * fix tests for EnumerableSet "index out of bound" * Changelog Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
@ -127,7 +127,6 @@ library EnumerableSet {
|
||||
* - `index` must be strictly less than {length}.
|
||||
*/
|
||||
function _at(Set storage set, uint256 index) private view returns (bytes32) {
|
||||
require(set._values.length > index, "EnumerableSet: index out of bounds");
|
||||
return set._values[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user