From: Chris Duncan Date: Mon, 10 Aug 2026 05:25:50 +0000 (-0700) Subject: Fix incorrect object reference. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=881b5f9a3567cd76a9a7311b2ba7514fe9c2221c;p=libnemo.git Fix incorrect object reference. --- diff --git a/src/lib/rpc/accounts_frontiers.ts b/src/lib/rpc/accounts_frontiers.ts index 0bf7469..dd59b4b 100644 --- a/src/lib/rpc/accounts_frontiers.ts +++ b/src/lib/rpc/accounts_frontiers.ts @@ -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 }