From 688f982c704e50d70e69a9e7e397dd5dd6e37ddf Mon Sep 17 00:00:00 2001 From: Alexander Sporn Date: Fri, 8 Mar 2024 12:51:51 +0100 Subject: [PATCH] Fix error in validators endpoint --- components/restapi/core/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/restapi/core/accounts.go b/components/restapi/core/accounts.go index d94cef2ab..48f51361e 100644 --- a/components/restapi/core/accounts.go +++ b/components/restapi/core/accounts.go @@ -67,7 +67,7 @@ func validators(c echo.Context) (*api.ValidatorsResponse, error) { } slotRange := uint32(requestedSlot) / restapi.ParamsRestAPI.RequestsMemoryCacheGranularity - return deps.RequestHandler.Validators(slotRange, pageSize, cursorIndex) + return deps.RequestHandler.Validators(slotRange, cursorIndex, pageSize) } func validatorByAccountAddress(c echo.Context) (*api.ValidatorResponse, error) {