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:
Alexey Shekhirin 2022-08-25 17:08:48 +01:00 committed by GitHub
parent b71e6ad00b
commit f3da435081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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")]