mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
HTTP Validator API: /eth/v1/validator/{pubkey}/feerecipient (#13085)
* migrating fee recipient endpoints to pure http implementation * fixing linting * fixing type name * fixing after merging develop * fixing linting and tests * Update validator/rpc/structs.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/structs.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update validator/rpc/structs.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -57,8 +57,8 @@ func getValidatorHappyPathTestServer(t *testing.T) *httptest.Server {
|
||||
}
|
||||
address, ok := feeMap[validatorKey]
|
||||
require.Equal(t, ok, true)
|
||||
err := json.NewEncoder(w).Encode(&apimiddleware.GetFeeRecipientByPubkeyResponseJson{
|
||||
Data: &apimiddleware.FeeRecipientJson{
|
||||
err := json.NewEncoder(w).Encode(&rpc.GetFeeRecipientByPubkeyResponse{
|
||||
Data: &rpc.FeeRecipient{
|
||||
Pubkey: validatorKey,
|
||||
Ethaddress: address,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user