Address 5.4 audit documentation improvements (#5779)
This commit is contained in:
@ -126,8 +126,9 @@ library EnumerableSet {
|
||||
/**
|
||||
* @dev Removes all the values from a set. O(n).
|
||||
*
|
||||
* WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
|
||||
* function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.
|
||||
* WARNING: This function has an unbounded cost that scales with set size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the set grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function _clear(Set storage set) private {
|
||||
uint256 len = _length(set);
|
||||
|
||||
Reference in New Issue
Block a user