From bfe44809d87069aa9710bba7e29ef2572f56fa5b Mon Sep 17 00:00:00 2001 From: Mathieu <60658558+msaug@users.noreply.github.com> Date: Sun, 18 Dec 2022 16:27:57 +0100 Subject: [PATCH] chore: make execution types clonable (#156) --- execution/src/types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/execution/src/types.rs b/execution/src/types.rs index 49c3cf7..16b7c63 100644 --- a/execution/src/types.rs +++ b/execution/src/types.rs @@ -19,7 +19,7 @@ pub struct Account { pub slots: HashMap, } -#[derive(Deserialize, Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug, Clone)] #[serde(rename_all = "camelCase")] pub struct ExecutionBlock { #[serde(serialize_with = "serialize_u64_string")] @@ -54,13 +54,13 @@ pub struct ExecutionBlock { pub uncles: Vec, } -#[derive(Deserialize, Serialize, Debug)] +#[derive(Deserialize, Serialize, Debug, Clone)] pub enum Transactions { Hashes(Vec), Full(Vec), } -#[derive(Deserialize, Serialize)] +#[derive(Deserialize, Serialize, Clone)] #[serde(rename_all = "camelCase")] pub struct CallOpts { pub from: Option
,