From: Chris Duncan Date: Tue, 9 Sep 2025 20:59:45 +0000 (-0700) Subject: Fix account map iteration in Ledger test. X-Git-Tag: v0.10.5~22^2~10 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=2a49717b6848e23c67145a52e04108a24ba13398;p=libnemo.git Fix account map iteration in Ledger test. --- 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)