chore: make execution types clonable (#156)

This commit is contained in:
Mathieu 2022-12-18 16:27:57 +01:00 committed by GitHub
parent aa838aeee1
commit bfe44809d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ pub struct Account {
pub slots: HashMap<H256, U256>, pub slots: HashMap<H256, U256>,
} }
#[derive(Deserialize, Serialize, Debug)] #[derive(Deserialize, Serialize, Debug, Clone)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct ExecutionBlock { pub struct ExecutionBlock {
#[serde(serialize_with = "serialize_u64_string")] #[serde(serialize_with = "serialize_u64_string")]
@ -54,13 +54,13 @@ pub struct ExecutionBlock {
pub uncles: Vec<H256>, pub uncles: Vec<H256>,
} }
#[derive(Deserialize, Serialize, Debug)] #[derive(Deserialize, Serialize, Debug, Clone)]
pub enum Transactions { pub enum Transactions {
Hashes(Vec<H256>), Hashes(Vec<H256>),
Full(Vec<Transaction>), Full(Vec<Transaction>),
} }
#[derive(Deserialize, Serialize)] #[derive(Deserialize, Serialize, Clone)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct CallOpts { pub struct CallOpts {
pub from: Option<Address>, pub from: Option<Address>,