Skip to content

Commit ac268f1

Browse files
fix(levm): remove logs from transaction revert (#2483)
**Description** This PR removes logs from the `ExecutionReport` when a transaction reverts. With this fix, LEVM no longer breaks at block 80k while syncing on Holesky testnet.
1 parent cfec7f9 commit ac268f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/vm/levm/src/execution_handlers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<'a> VM<'a> {
4545
gas_used: current_call_frame.gas_limit,
4646
gas_refunded: self.env.refunded_gas,
4747
output: Bytes::new(),
48-
logs: std::mem::take(&mut current_call_frame.logs),
48+
logs: vec![],
4949
})
5050
}
5151
}
@@ -217,7 +217,7 @@ impl<'a> VM<'a> {
217217
gas_used: current_call_frame.gas_used,
218218
gas_refunded: self.env.refunded_gas,
219219
output: std::mem::take(&mut current_call_frame.output),
220-
logs: std::mem::take(&mut current_call_frame.logs),
220+
logs: vec![],
221221
});
222222
}
223223
}

0 commit comments

Comments
 (0)