Skip to content

Commit

Permalink
add log event (#2918)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ authored Aug 28, 2024
1 parent 84bbe13 commit e7cec54
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions primitives/rpc/evm-tracing-events/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ pub enum EvmEvent {
is_static: bool,
context: super::Context,
},
Log {
address: H160,
topics: Vec<H256>,
data: Vec<u8>,
},
}

#[cfg(feature = "evm-tracing")]
Expand Down Expand Up @@ -252,6 +257,15 @@ impl<'a> From<evm::tracing::Event<'a>> for EvmEvent {
is_static,
context: context.clone().into(),
},
evm::tracing::Event::Log {
address,
topics,
data,
} => Self::Log {
address,
topics: topics.to_vec(),
data: data.to_vec(),
},
}
}
}

0 comments on commit e7cec54

Please sign in to comment.