From 2a49717b6848e23c67145a52e04108a24ba13398 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 9 Sep 2025 13:59:45 -0700 Subject: [PATCH] Fix account map iteration in Ledger test. --- test/test.ledger.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.ledger.mjs b/test/test.ledger.mjs index ff76320..8736eea 100644 --- a/test/test.ledger.mjs +++ b/test/test.ledger.mjs @@ -85,8 +85,8 @@ await Promise.all([ const accounts = await wallet.accounts(1, 2) assert.exists(accounts) - assert.equal(accounts.length, 2) - for (const account of accounts) { + assert.equal(accounts.size, 2) + for (const [index, account] of accounts) { assert.ok(account instanceof Account) assert.exists(account.address) assert.exists(account.publicKey) @@ -97,7 +97,7 @@ await Promise.all([ const accounts = await wallet.refresh(rpc, 0, 2) assert.exists(accounts) - for (const account of accounts) { + for (const [index, account] of accounts) { assert.ok(account instanceof Account) assert.exists(account.address) assert.exists(account.publicKey) -- 2.47.3