Skip to content

Commit

Permalink
add log event (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea authored Aug 28, 2024
1 parent 28da643 commit cdebfdb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tracing/shared/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 @@ -253,6 +258,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 cdebfdb

Please sign in to comment.