mirror of
https://github.com/luxfhe/example-confidential-voting.git
synced 2026-10-30 18:13:35 +00:00
15 lines
463 B
TypeScript
15 lines
463 B
TypeScript
import { ethers } from "ethers";
|
|
import { task } from "hardhat/config";
|
|
|
|
task("task:fundAccounts", "Prints the list of accounts", async (_taskArgs, hre) => {
|
|
const accounts = await hre.ethers.getSigners();
|
|
|
|
const fundingAcct = accounts[0];
|
|
|
|
for (let i = 1; i < accounts.length; i++) {
|
|
const account = accounts[i];
|
|
await fundingAcct.sendTransaction({ to: account.address, value: ethers.parseEther("0.1") });
|
|
console.log(account.address);
|
|
}
|
|
});
|