async function setupTestEnvironment() {
// Fund test accounts
for (const account of testAccounts) {
await provider.request(hardhat.hardhat_setBalance(
account,
'0x56bc75e2d63100000' // 100 ETH
));
}
// Deploy mock contracts
await provider.request(hardhat.hardhat_setCode(
mockAddress,
mockBytecode
));
// Set storage values
await provider.request(hardhat.hardhat_setStorageAt(
mockAddress,
'0x0',
encodedValue
));
}