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:
parent
279280c6fd
commit
89cf65f963
|
@ -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},
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue