Fix EnumerableMap and EnumerableSet generation

This commit is contained in:
Hadrien Croubois
2022-09-06 23:12:22 +02:00
parent 42fe56031f
commit d857ab5702
2 changed files with 10 additions and 6 deletions

View File

@ -45,10 +45,12 @@ import "./EnumerableSet.sol";
* *
* [WARNING] * [WARNING]
* ==== * ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
* *
* In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an array of EnumerableMap. * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableMap.
* ==== * ====
*/ */
`; `;

View File

@ -37,10 +37,12 @@ pragma solidity ^0.8.0;
* *
* [WARNING] * [WARNING]
* ==== * ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
* *
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ==== * ====
*/ */
`; `;