Skip to content

Commit

Permalink
fix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Aug 7, 2024
1 parent cbc9742 commit 2484722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/rpc/modules/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2484722

Please sign in to comment.