From 2484722da26e4d91a0edfcb94a3a6260a2365ffb Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:49:59 -0400 Subject: [PATCH] fix versions --- packages/client/src/rpc/modules/admin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/rpc/modules/admin.ts b/packages/client/src/rpc/modules/admin.ts index 42db35e093..f967676dd3 100644 --- a/packages/client/src/rpc/modules/admin.ts +++ b/packages/client/src/rpc/modules/admin.ts @@ -88,7 +88,7 @@ export class Admin { ? bytesToHex(peer.eth.updatedBestHeader?.hash()) : bytesToHex(peer.eth?.status.bestHash), difficulty: peer.eth?.status.td.toString(10), - version: peer.eth?.['versions'][-1] ?? null, + version: peer.eth?.['versions'].slice(-1)[0] ?? null, }, }, caps: peer.eth?.['versions'].map((ver) => 'eth/' + ver),