From 64bc0c5693cf7ce54db356e4fc445a36a1484610 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 17 Oct 2023 14:57:27 -0600 Subject: [PATCH] ensure "type group" is Clone --- beacon-api-client/src/api_client.rs | 2 +- beacon-api-client/src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 {