Address 5.4 audit documentation improvements (#5779)
This commit is contained in:
@ -220,8 +220,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(UintToUintMap storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -342,8 +343,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(UintToAddressMap storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -464,8 +466,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(UintToBytes32Map storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -586,8 +589,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(AddressToUintMap storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -708,8 +712,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(AddressToAddressMap storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -834,8 +839,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(AddressToBytes32Map storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -960,8 +966,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(Bytes32ToUintMap storage map) internal {
|
||||
clear(map._inner);
|
||||
@ -1082,8 +1089,9 @@ library EnumerableMap {
|
||||
/**
|
||||
* @dev Removes all the entries from a map. 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 map 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 map size. Developers should keep in mind that
|
||||
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
|
||||
* gas to fit in a block.
|
||||
*/
|
||||
function clear(Bytes32ToAddressMap storage map) internal {
|
||||
clear(map._inner);
|
||||
|
||||
@ -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