From 0d724b18a0e93b3f42e1b4dd7bbc43eb7ff1f96c Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Mon, 10 Mar 2025 13:26:59 +0800 Subject: [PATCH] Correct output type thanks Michael --- common/eth2/src/lib.rs | 2 +- .../validator_services/src/duties_service.rs | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/common/eth2/src/lib.rs b/common/eth2/src/lib.rs index e665a6c1d1..39d2260dbc 100644 --- a/common/eth2/src/lib.rs +++ b/common/eth2/src/lib.rs @@ -2669,7 +2669,7 @@ impl BeaconNodeHttpClient { pub async fn post_validator_beacon_committee_selections( &self, selections: &[BeaconCommitteeSelection], - ) -> Result>, Error> { + ) -> Result>, Error> { let mut path = self.eth_path(V1)?; path.path_segments_mut() diff --git a/validator_client/validator_services/src/duties_service.rs b/validator_client/validator_services/src/duties_service.rs index 2786633248..f70b339042 100644 --- a/validator_client/validator_services/src/duties_service.rs +++ b/validator_client/validator_services/src/duties_service.rs @@ -162,12 +162,17 @@ async fn make_selection_proof( } }) .await; - response - .map_err(|e| { - Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(e.to_string())) - })? - .data[0] - .clone() + SelectionProof::from( + response + .map_err(|e| { + Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware( + e.to_string(), + )) + })? + .data[0] + .selection_proof + .clone(), + ) } else { validator_store .produce_selection_proof(duty.pubkey, duty.slot)