Skip to content

Commit

Permalink
Merge pull request #48 from stakedotlink/chore/geth-dev-fund-refactor
Browse files Browse the repository at this point in the history
Refactor geth-dev-node accounts length
  • Loading branch information
anon-r-7 authored Sep 15, 2023
2 parents dd82555 + 569b3c5 commit c7e6542
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 c7e6542

Please sign in to comment.