Add new EnumerableMap types (#4843)

Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2024-01-22 20:25:01 +01:00
committed by GitHub
parent e5c63635e3
commit a5c4cd8182
6 changed files with 417 additions and 52 deletions

View File

@ -9,6 +9,11 @@ const generators = {
hexBytes: length => ethers.hexlify(ethers.randomBytes(length)),
};
generators.address.zero = ethers.ZeroAddress;
generators.bytes32.zero = ethers.ZeroHash;
generators.uint256.zero = 0n;
generators.hexBytes.zero = '0x';
module.exports = {
randomArray,
generators,