chore: make execution types clonable (#156)
This commit is contained in:
parent
aa838aeee1
commit
bfe44809d8
|
@ -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>,
|
||||||
|
|
Loading…
Reference in New Issue