Skip to content

Commit

Permalink
make test amount a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
b-pmcg committed Aug 9, 2023
1 parent 16311ef commit e993a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ async function main() {
});

const ethSender = await ethers.getSigner(accounts[0].address);
const ethAmt = '0.5';
// Send 0.5 ETH to all addresses
for (let i = 0; i < 50; i++) {
await ethSender.sendTransaction({
to: keyPairs.addresses[i],
value: ethers.utils.parseEther('0.5')
value: ethers.utils.parseEther(ethAmt)
});
}
console.log('Imported accounts have been sent 0.5 ETH');
console.log(`Imported accounts have been sent ${ethAmt} ETH`);

await ethSender.sendTransaction({
to: testAccount,
Expand Down

0 comments on commit e993a9d

Please sign in to comment.