Address 5.4 audit documentation improvements (#5779)

This commit is contained in:
Ernesto García
2025-07-09 07:53:47 -06:00
committed by GitHub
parent ba35d580f4
commit a95d01c30d
6 changed files with 35 additions and 24 deletions

View File

@ -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);