From df2bc4ab7a430a2fa3e51405307305ffcb86df48 Mon Sep 17 00:00:00 2001 From: Alok Date: Wed, 24 Jan 2024 18:21:14 +0530 Subject: [PATCH] fix: args in stats api --- integrationtest/config.yaml | 4 ++-- pkg/apiserver/apiserver.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integrationtest/config.yaml b/integrationtest/config.yaml index 307f0f3..96cf2f6 100644 --- a/integrationtest/config.yaml +++ b/integrationtest/config.yaml @@ -2,8 +2,8 @@ priv_key_file: /key log_level: debug l1_rpc_url: settlement_rpc_url: http://sl-bootnode:8545 -oracle_contract_addr: 0x3F4edEB407aB1Ecca3729C9CD3c9f7DC63b307A3 -preconf_contract_addr: 0xBB632720f817792578060F176694D8f7230229d9 +oracle_contract_addr: 0xF82E60097df8A1c2c58dC95ce08fe00F30717beB +preconf_contract_addr: 0x451656c1E7eDf82397EBE04f38819c9970AA3658 pg_host: oracle-db pg_port: 5432 pg_user: oracle_user diff --git a/pkg/apiserver/apiserver.go b/pkg/apiserver/apiserver.go index ff0f38f..7903a0b 100644 --- a/pkg/apiserver/apiserver.go +++ b/pkg/apiserver/apiserver.go @@ -83,7 +83,7 @@ func (a *Service) registerStatsEndpoints() { } } - blocks, err := a.storage.ProcessedBlocks(page, limit) + blocks, err := a.storage.ProcessedBlocks(limit, page) if err != nil { log.Error().Err(err).Msg("failed to get processed blocks") w.WriteHeader(http.StatusInternalServerError)