@@ -220,8 +220,9 @@ library EnumerableMap {
220
220
/**
221
221
* @dev Removes all the entries from a map. O(n).
222
222
*
223
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
224
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
223
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
224
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
225
+ * gas to fit in a block.
225
226
*/
226
227
function clear (UintToUintMap storage map ) internal {
227
228
clear (map._inner);
@@ -342,8 +343,9 @@ library EnumerableMap {
342
343
/**
343
344
* @dev Removes all the entries from a map. O(n).
344
345
*
345
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
346
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
346
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
347
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
348
+ * gas to fit in a block.
347
349
*/
348
350
function clear (UintToAddressMap storage map ) internal {
349
351
clear (map._inner);
@@ -464,8 +466,9 @@ library EnumerableMap {
464
466
/**
465
467
* @dev Removes all the entries from a map. O(n).
466
468
*
467
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
468
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
469
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
470
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
471
+ * gas to fit in a block.
469
472
*/
470
473
function clear (UintToBytes32Map storage map ) internal {
471
474
clear (map._inner);
@@ -586,8 +589,9 @@ library EnumerableMap {
586
589
/**
587
590
* @dev Removes all the entries from a map. O(n).
588
591
*
589
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
590
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
592
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
593
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
594
+ * gas to fit in a block.
591
595
*/
592
596
function clear (AddressToUintMap storage map ) internal {
593
597
clear (map._inner);
@@ -708,8 +712,9 @@ library EnumerableMap {
708
712
/**
709
713
* @dev Removes all the entries from a map. O(n).
710
714
*
711
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
712
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
715
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
716
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
717
+ * gas to fit in a block.
713
718
*/
714
719
function clear (AddressToAddressMap storage map ) internal {
715
720
clear (map._inner);
@@ -834,8 +839,9 @@ library EnumerableMap {
834
839
/**
835
840
* @dev Removes all the entries from a map. O(n).
836
841
*
837
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
838
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
842
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
843
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
844
+ * gas to fit in a block.
839
845
*/
840
846
function clear (AddressToBytes32Map storage map ) internal {
841
847
clear (map._inner);
@@ -960,8 +966,9 @@ library EnumerableMap {
960
966
/**
961
967
* @dev Removes all the entries from a map. O(n).
962
968
*
963
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
964
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
969
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
970
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
971
+ * gas to fit in a block.
965
972
*/
966
973
function clear (Bytes32ToUintMap storage map ) internal {
967
974
clear (map._inner);
@@ -1082,8 +1089,9 @@ library EnumerableMap {
1082
1089
/**
1083
1090
* @dev Removes all the entries from a map. O(n).
1084
1091
*
1085
- * WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
1086
- * function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
1092
+ * WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
1093
+ * using it may render the function uncallable if the map grows to the point where clearing it consumes too much
1094
+ * gas to fit in a block.
1087
1095
*/
1088
1096
function clear (Bytes32ToAddressMap storage map ) internal {
1089
1097
clear (map._inner);
0 commit comments