Add new EnumerableMap types (#4843)
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user