Skip to content

Commit

Permalink
Fix http method type(POST to GET) of EstimatedActivation (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
syjn99 authored Sep 9, 2024
1 parent 181c35f commit 124cbf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/rpc/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
Expand Down

0 comments on commit 124cbf7

Please sign in to comment.