diff --git a/beacon-api-client/src/api_client.rs b/beacon-api-client/src/api_client.rs index e63feddf5..6489ec85f 100644 --- a/beacon-api-client/src/api_client.rs +++ b/beacon-api-client/src/api_client.rs @@ -51,7 +51,7 @@ async fn api_error_or_value( } } -pub trait ClientTypes { +pub trait ClientTypes: Clone { type SignedContributionAndProof: serde::Serialize; type SyncCommitteeContribution: serde::Serialize + serde::de::DeserializeOwned; type BlindedBeaconBlock: serde::Serialize + serde::de::DeserializeOwned; diff --git a/beacon-api-client/src/lib.rs b/beacon-api-client/src/lib.rs index d27e6ee3b..4370dc99a 100644 --- a/beacon-api-client/src/lib.rs +++ b/beacon-api-client/src/lib.rs @@ -43,6 +43,7 @@ pub mod presets { }, }; + #[derive(Clone)] pub struct MainnetClientTypes; impl crate::ClientTypes for MainnetClientTypes { @@ -76,6 +77,7 @@ pub mod presets { }, }; + #[derive(Clone)] pub struct MinimalClientTypes; impl crate::ClientTypes for MinimalClientTypes {