From 124cbf73ef38bb22193fefe5fa5aa1a816883e4c Mon Sep 17 00:00:00 2001 From: Jun Song <87601811+syjn99@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:11:27 +0900 Subject: [PATCH] Fix http method type(POST to GET) of EstimatedActivation (#19) --- beacon-chain/rpc/endpoints.go | 2 +- beacon-chain/rpc/endpoints_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-chain/rpc/endpoints.go b/beacon-chain/rpc/endpoints.go index 17859f8a7..b05f08dd7 100644 --- a/beacon-chain/rpc/endpoints.go +++ b/beacon-chain/rpc/endpoints.go @@ -806,7 +806,7 @@ func (s *Service) overEndpoints(stater lookup.Stater) []endpoint { template: "/chronos/validator/estimated_activation/{validator_id}", name: namespace + ".EstimatedActivation", handler: server.EstimatedActivation, - methods: []string{http.MethodPost}, + methods: []string{http.MethodGet}, }, { template: "/chronos/states/epoch_reward/{epoch}", diff --git a/beacon-chain/rpc/endpoints_test.go b/beacon-chain/rpc/endpoints_test.go index 4bedc0c74..58e148888 100644 --- a/beacon-chain/rpc/endpoints_test.go +++ b/beacon-chain/rpc/endpoints_test.go @@ -128,7 +128,7 @@ func Test_endpoints(t *testing.T) { } overRoutes := map[string][]string{ - "/chronos/validator/estimated_activation/{validator_id}": {http.MethodPost}, + "/chronos/validator/estimated_activation/{validator_id}": {http.MethodGet}, "/chronos/states/epoch_reward/{epoch}": {http.MethodGet}, "/over/v1/beacon/states/{state_id}/reserves": {http.MethodGet}, }