fix: evm should not commit logs in case of revert or discard
rel
@@ -146,7 +146,6 @@ impl<'config> MemoryStackSubstate<'config> {
mem::swap(&mut exited, self);
self.metadata.swallow_revert(exited.metadata)?;
- self.logs.append(&mut exited.logs);
Ok(())
}
@@ -156,7 +155,6 @@ impl<'config> MemoryStackSubstate<'config> {
mem::swap(&mut exited, self);
self.metadata.swallow_discard(exited.metadata)?;
- self.logs.append(&mut exited.logs);
Ok(())
}
