Skip to content

Commit

Permalink
Refactor geth-dev-node accounts length
Browse files Browse the repository at this point in the history
  • Loading branch information
anon-r-7 committed Sep 15, 2023
1 parent dd82555 commit 569b3c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/test/geth-dev-fund.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { ethers } from 'hardhat'
import { getAccounts } from '../utils/helpers'

async function main() {
let accounts = 9
const { accounts } = await getAccounts()

let customHttpProvider = new ethers.providers.JsonRpcProvider(process.env.GETH_URL)

let coinbase = await customHttpProvider.send('eth_coinbase', [])
let coinbaseSigner = await customHttpProvider.getUncheckedSigner(coinbase)

for (let i = 0; i < accounts; i++) {
for (let i = 0; i < accounts.length; i++) {
let signer = await ethers.provider.getSigner(i)
let balance = await signer.getBalance()

Expand Down

0 comments on commit 569b3c5

Please sign in to comment.