]> git.codecow.com Git - libnemo.git/commitdiff
Fix account map iteration in Ledger test.
authorChris Duncan <chris@zoso.dev>
Tue, 9 Sep 2025 20:59:45 +0000 (13:59 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 9 Sep 2025 20:59:45 +0000 (13:59 -0700)
test/test.ledger.mjs

index ff763206cbdc42a78df74274b24912fe4a53911b..8736eea72f4c99497bcebc5395e9dfededfcf460 100644 (file)
@@ -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)