Add variants of Array.sort for address[] and bytes32[] (#4883)
Co-authored-by: Ernesto García <ernestognw@gmail.com>
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
const { ethers } = require('hardhat');
|
||||
|
||||
const randomArray = (generator, arrayLength = 3) => Array(arrayLength).fill().map(generator);
|
||||
|
||||
const generators = {
|
||||
address: () => ethers.Wallet.createRandom().address,
|
||||
bytes32: () => ethers.hexlify(ethers.randomBytes(32)),
|
||||
@ -15,6 +13,5 @@ generators.uint256.zero = 0n;
|
||||
generators.hexBytes.zero = '0x';
|
||||
|
||||
module.exports = {
|
||||
randomArray,
|
||||
generators,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user