@@ -24,7 +24,8 @@ use revm::{
24
24
use std:: { collections:: HashMap , sync:: OnceLock } ;
25
25
26
26
/// A context that performs the fewest meaingful actions. Specifically, it
27
- /// fills the block, and applies transactions to the EVM db.
27
+ /// fills the block, and applies transactions to the EVM db. It does not apply
28
+ /// any pre- or post-block actions.
28
29
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Default ) ]
29
30
pub struct BasicContext ;
30
31
@@ -156,7 +157,7 @@ impl Shanghai<'_> {
156
157
}
157
158
158
159
/// Get the block outputs. This contains receipts and senders.
159
- pub fn outputs ( & self ) -> & BlockOutput {
160
+ pub const fn outputs ( & self ) -> & BlockOutput {
160
161
& self . outputs
161
162
}
162
163
@@ -311,6 +312,7 @@ where
311
312
}
312
313
313
314
impl Prague < ' _ > {
315
+ /// Finds deposit logs for the most recent receipt.
314
316
fn find_deposit_logs ( & mut self ) {
315
317
let receipt =
316
318
self . cancun . shanghai . outputs . receipts ( ) . last ( ) . expect ( "produced in shanghai lifecycle" ) ;
@@ -328,7 +330,8 @@ impl Prague<'_> {
328
330
329
331
/// Apply the pre-block logic for [EIP-2935]. This logic was introduced in
330
332
/// Prague and updates historical block hashes in a special system
331
- /// contract. Unlike other system transactions, this is NOT modeled as a transaction.
333
+ /// contract. Unlike other system actions, this is NOT modeled as a
334
+ /// transaction.
332
335
///
333
336
/// [EIP-2935]: https://eips.ethereum.org/EIPS/eip-2935
334
337
pub fn apply_eip2935 < Ext , Db > (
0 commit comments