fix: geth structlog memory (#1690)

This commit is contained in:
Matthias Seitz 2022-09-12 23:32:01 +02:00 committed by GitHub
parent 162e0de27a
commit 5a18059b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ pub struct StructLog {
pub gas: u64, pub gas: u64,
#[serde(rename = "gasCost")] #[serde(rename = "gasCost")]
pub gas_cost: u64, pub gas_cost: u64,
/// ref <https://github.com/ethereum/go-ethereum/blob/366d2169fbc0e0f803b68c042b77b6b480836dbc/eth/tracers/logger/logger.go#L450-L452>
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub memory: Option<Vec<H256>>, pub memory: Option<Vec<String>>,
pub op: String, pub op: String,
pub pc: u64, pub pc: u64,
#[serde(rename = "refund", skip_serializing_if = "Option::is_none")] #[serde(rename = "refund", skip_serializing_if = "Option::is_none")]