Correct output type thanks Michael

This commit is contained in:
Tan Chee Keong
2025-03-10 13:26:59 +08:00
parent 8e0315d635
commit 0d724b18a0
2 changed files with 12 additions and 7 deletions

View File

@@ -2669,7 +2669,7 @@ impl BeaconNodeHttpClient {
pub async fn post_validator_beacon_committee_selections(
&self,
selections: &[BeaconCommitteeSelection],
) -> Result<GenericResponse<Vec<SelectionProof>>, Error> {
) -> Result<GenericResponse<Vec<BeaconCommitteeSelection>>, Error> {
let mut path = self.eth_path(V1)?;
path.path_segments_mut()

View File

@@ -162,12 +162,17 @@ async fn make_selection_proof<T: SlotClock + 'static, E: EthSpec>(
}
})
.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)