Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in accounts.ts #4

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/utils/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function setupAccounts() {
setEnvValue("PUBLIC_KEYS", `${key1.address},${key2.address}`)
setEnvValue("SIGNING_KEYS", `${key1.privateKey},${key2.privateKey}`)

throw new Error(`Created new random accounts ${key1.address} and ${key2.address}. Please use faucet to fund it.`)
throw new Error(`Created new random accounts ${key1.address} and ${key2.address}. Please use faucet to fund them.`)
}

const wallets = pks.map((pk) => new Wallet(pk, provider))
Expand All @@ -39,7 +39,7 @@ export async function setupAccounts() {

let accounts: Wallet[] = []
if (userKeys.length !== wallets.length) {
await (await wallets[0].sendTransaction({ to: wallets[1].address, value: parseEther("0.1") })).wait()
await (await wallets[0].sendTransaction({ to: wallets[1].address, value: parseEther("1.0") })).wait()

accounts = await Promise.all(wallets.map(async (account, i) => await toAccount(account)))
setEnvValue("USER_KEYS", accounts.map((a) => a.getUserOnboardInfo()?.aesKey).join(","))
Expand Down
Loading