From e1415ac920cc997d5d2fe66eec61c656011bf981 Mon Sep 17 00:00:00 2001 From: Raymond Jacobson Date: Mon, 18 May 2026 19:04:01 -0700 Subject: [PATCH] fix(protocol-dashboard): fetch latest validator version via getNumberOfVersions getCurrentVersion on the ServiceTypeManager contract was returning a stale version (1.0.0) for the Validator service type. Switch to reading the latest registered version by calling getNumberOfVersions and then getVersion(numberOfVersions - 1). Co-Authored-By: Claude Opus 4.7 --- .../protocol-dashboard/src/store/cache/protocol/hooks.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts b/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts index 05209236f65..7d592ffeac6 100644 --- a/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts +++ b/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts @@ -84,7 +84,12 @@ export function fetchCurrentVersion( serviceType: ServiceType ): ThunkAction> { return async (dispatch, getState, aud) => { - const currentVersion = await aud.NodeType.getCurrentVersion(serviceType) + const numberOfVersions = + await aud.NodeType.getNumberOfVersions(serviceType) + const currentVersion = await aud.NodeType.getVersion( + serviceType, + numberOfVersions - 1 + ) dispatch(setCurrentVersion({ serviceType, currentVersion })) } }