mirror of
https://github.com/zama-ai/fhevm-solidity.git
synced 2026-04-17 03:00:47 -04:00
15 lines
417 B
TypeScript
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;
|
|
}
|