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.
This commit is contained in:
Justin Phu 2023-03-21 14:01:48 +11:00 committed by GitHub
parent 279280c6fd
commit 89cf65f963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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},

View File

@ -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<Address>,
pub address: Option<Address>,
#[serde(default, skip_serializing_if = "Option::is_none")]
topics: Option<Vec<H256>>,
pub topics: Option<Vec<H256>>,
#[serde(default, skip_serializing_if = "Option::is_none")]
data: Option<Bytes>,
pub data: Option<Bytes>,
}
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]