From 89cf65f9639df80c5450938bb7580acb0057625b Mon Sep 17 00:00:00 2001 From: Justin Phu <39173730+jqphu@users.noreply.github.com> Date: Tue, 21 Mar 2023 14:01:48 +1100 Subject: [PATCH] fix(core): re-export CallLogFrame from geth types (#2283) * fix(core): re-export CallLogFrame from geth types The CallLogFrame was not being exported from geth which made it difficult to store all the logs using the ethers type. * fix(core): correct the visibility of the geth CallLogFrame struct The previous diff made the struct public but did not change the fields itself. The struct being public is not useful unless the fields are public. --- ethers-core/src/types/trace/geth.rs | 2 +- ethers-core/src/types/trace/geth/call.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ethers-core/src/types/trace/geth.rs b/ethers-core/src/types/trace/geth.rs index 630810db..49a5fe7f 100644 --- a/ethers-core/src/types/trace/geth.rs +++ b/ethers-core/src/types/trace/geth.rs @@ -4,7 +4,7 @@ mod noop; mod pre_state; pub use self::{ - call::{CallConfig, CallFrame}, + call::{CallConfig, CallFrame, CallLogFrame}, four_byte::FourByteFrame, noop::NoopFrame, pre_state::{PreStateConfig, PreStateFrame}, diff --git a/ethers-core/src/types/trace/geth/call.rs b/ethers-core/src/types/trace/geth/call.rs index f6c97b89..e0854a71 100644 --- a/ethers-core/src/types/trace/geth/call.rs +++ b/ethers-core/src/types/trace/geth/call.rs @@ -32,11 +32,11 @@ pub struct CallFrame { #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)] pub struct CallLogFrame { #[serde(default, skip_serializing_if = "Option::is_none")] - address: Option
, + pub address: Option
, #[serde(default, skip_serializing_if = "Option::is_none")] - topics: Option>, + pub topics: Option>, #[serde(default, skip_serializing_if = "Option::is_none")] - data: Option, + pub data: Option, } #[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]