]> git.codecow.com Git - libnemo.git/commitdiff
Fix incorrect object reference.
authorChris Duncan <chris@codecow.com>
Mon, 10 Aug 2026 05:25:50 +0000 (22:25 -0700)
committerChris Duncan <chris@codecow.com>
Mon, 10 Aug 2026 05:25:50 +0000 (22:25 -0700)
src/lib/rpc/accounts_frontiers.ts

index 0bf74691ce299b35f4c2894577e95116ec659961..dd59b4b6c50a6d40c910f90b0c4c62bf4a22fc6b 100644 (file)
@@ -31,7 +31,7 @@ export function accounts_frontiers (body: unknown): AccountsFrontiersResponse {
                if ('frontiers' in body && body.frontiers != null && typeof body.frontiers === 'object') {
                        const frontiers = response.frontiers ?? Object.create(null)
                        response.frontiers = frontiers
-                       for (const [address, frontier] of Object.entries(frontiers) as [string, unknown][]) {
+                       for (const [address, frontier] of Object.entries(body.frontiers) as [string, unknown][]) {
                                if (Account.isValid(address) && hex.is(frontier, 64)) {
                                        frontiers[address] = frontier
                                }