Skip to content

Commit 537dbd1

Browse files
committed
Add evm::tracing::Event::Log event #moonbeam-foundation/moonbeam#2918
1 parent b6af827 commit 537dbd1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • primitives/bifrost/rpc/evm-tracing-events/src

primitives/bifrost/rpc/evm-tracing-events/src/evm.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ pub enum EvmEvent {
120120
is_static: bool,
121121
context: super::Context,
122122
},
123+
Log {
124+
address: H160,
125+
topics: Vec<H256>,
126+
data: Vec<u8>,
127+
},
123128
}
124129

125130
#[cfg(feature = "evm-tracing")]
@@ -236,6 +241,15 @@ impl<'a> From<evm::tracing::Event<'a>> for EvmEvent {
236241
is_static,
237242
context: context.clone().into(),
238243
},
244+
evm::tracing::Event::Log {
245+
address,
246+
topics,
247+
data,
248+
} => Self::Log {
249+
address,
250+
topics: topics.to_vec(),
251+
data: data.to_vec(),
252+
},
239253
}
240254
}
241255
}

0 commit comments

Comments
 (0)