We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 122a2e0 commit fe1501cCopy full SHA for fe1501c
1 file changed
crates/revmc-builtins/src/lib.rs
@@ -692,9 +692,11 @@ pub unsafe extern "C" fn __revmc_builtin_log(
692
address: ecx.input.target_address,
693
data: LogData::new(topics, data).expect("too many topics"),
694
};
695
- ecx.host.log(log.clone());
696
if let Some(on_log) = &mut ecx.on_log {
+ ecx.host.log(log.clone());
697
on_log(&log);
698
+ } else {
699
+ ecx.host.log(log);
700
}
701
Ok(())
702
0 commit comments