From d8d31b7b0110edd0be42cafebfbe4fa66f3994ae Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Thu, 20 Feb 2025 13:37:40 +0800 Subject: [PATCH] Add Vec --- common/eth2/src/lib.rs | 2 +- consensus/types/src/selection_proof.rs | 1 + validator_client/validator_services/src/duties_service.rs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/eth2/src/lib.rs b/common/eth2/src/lib.rs index 1bcf52192d..e665a6c1d1 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/consensus/types/src/selection_proof.rs b/consensus/types/src/selection_proof.rs index 47362717bd..60446ee3c5 100644 --- a/consensus/types/src/selection_proof.rs +++ b/consensus/types/src/selection_proof.rs @@ -8,6 +8,7 @@ use ssz::Encode; use std::cmp; #[derive(arbitrary::Arbitrary, PartialEq, Debug, Clone, Serialize, Deserialize)] +#[serde(transparent)] pub struct SelectionProof(Signature); impl SelectionProof { diff --git a/validator_client/validator_services/src/duties_service.rs b/validator_client/validator_services/src/duties_service.rs index 54af3dc772..498369a87e 100644 --- a/validator_client/validator_services/src/duties_service.rs +++ b/validator_client/validator_services/src/duties_service.rs @@ -159,7 +159,8 @@ async fn make_selection_proof( .map_err(|e| { Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(e.to_string())) })? - .data + .data[0] + .clone() } else { validator_store .produce_selection_proof(duty.pubkey, duty.slot)