Files
fhevm-solidity/test/rand/Rand.fixture.ts
2024-09-27 15:42:42 +02:00

15 lines
417 B
TypeScript

import { ethers } from 'hardhat';
import type { Rand } from '../../types';
import { getSigners } from '../signers';
export async function deployRandFixture(): Promise<Rand> {
const signers = await getSigners();
const contractFactory = await ethers.getContractFactory('Rand');
const contract = await contractFactory.connect(signers.alice).deploy();
await contract.waitForDeployment();
return contract;
}