From 4e1886978df7e7ebce483e142bda5facf147df01 Mon Sep 17 00:00:00 2001 From: noandrea Date: Wed, 28 Aug 2024 04:42:16 -0700 Subject: [PATCH] add log event --- .../primitives/rpc/evm-tracing-events/src/evm.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tracing/shared/primitives/rpc/evm-tracing-events/src/evm.rs b/tracing/shared/primitives/rpc/evm-tracing-events/src/evm.rs index 0382bbe5..10105b43 100644 --- a/tracing/shared/primitives/rpc/evm-tracing-events/src/evm.rs +++ b/tracing/shared/primitives/rpc/evm-tracing-events/src/evm.rs @@ -136,6 +136,11 @@ pub enum EvmEvent { is_static: bool, context: super::Context, }, + Log { + address: H160, + topics: Vec, + data: Vec, + }, } #[cfg(feature = "evm-tracing")] @@ -253,6 +258,15 @@ impl<'a> From> 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(), + }, } } }