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>,
|
||||
}
|
||||
|
||||
#[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<H256>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug)]
|
||||
#[derive(Deserialize, Serialize, Debug, Clone)]
|
||||
pub enum Transactions {
|
||||
Hashes(Vec<H256>),
|
||||
Full(Vec<Transaction>),
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[derive(Deserialize, Serialize, Clone)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CallOpts {
|
||||
pub from: Option<Address>,
|
||||
|
|
Loading…
Reference in New Issue