Currently using Foundry & Hardhat for development, Foundry for testing & Hardhat for deployment. I'm trying to fuzz a test input of a function that adds an address to a whitelist and I need a way of dynamically generating accounts to be tested (added to the whitelist).
When looking at the Foundry docs I was under the impression that it would automatically fuzz any test function args, however I've now realized that that works for other primitives, but not addresses. Essentially what I'm asking is if there is any way to replicate the ethers code const [address, address1, address2, ...addrs] = ethers.getSigners()
in Foundry (ie in Solidity instead of JS)?
If not, what are some viable workarounds?
Thank you in advance!
address addr1 = address(0x1234)
, easier for debugging.