feat(core): more derives for geth trace structs (#1637)
* feat(core): more derives for geth trace structs * derive Eq as well
This commit is contained in:
parent
b71e6ad00b
commit
f3da435081
|
@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
|
|||
use std::collections::BTreeMap;
|
||||
|
||||
// https://github.com/ethereum/go-ethereum/blob/a9ef135e2dd53682d106c6a2aede9187026cc1de/eth/tracers/logger/logger.go#L406-L411
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct GethTrace {
|
||||
pub failed: bool,
|
||||
pub gas: u64,
|
||||
|
@ -14,7 +14,7 @@ pub struct GethTrace {
|
|||
}
|
||||
|
||||
// https://github.com/ethereum/go-ethereum/blob/366d2169fbc0e0f803b68c042b77b6b480836dbc/eth/tracers/logger/logger.go#L413-L426
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct StructLog {
|
||||
pub depth: u64,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
|
|
Loading…
Reference in New Issue