Skip to content

Commit 45ae369

Browse files
committed
fix comments for lint
1 parent 84b669a commit 45ae369

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

crates/ev-revm/src/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ mod tests {
12121212
);
12131213
}
12141214

1215-
/// Tests that sponsored transactions with max_fee_per_gas < base_fee are rejected.
1215+
/// Tests that sponsored transactions with `max_fee_per_gas` < `base_fee` are rejected.
12161216
///
12171217
/// This validation happens in revm's `validate_env` (delegated via inner handler)
12181218
/// BEFORE our custom `validate_and_deduct_sponsored_tx` runs. This test serves

crates/node/src/txpool.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ mod tests {
557557
Signature::from_raw_array(&bytes).expect("valid test signature")
558558
}
559559

560-
/// Creates a non-sponsored EvNode transaction (fee_payer_signature = None)
560+
/// Creates a non-sponsored `EvNode` transaction (`fee_payer_signature` = None)
561561
fn create_non_sponsored_evnode_tx(gas_limit: u64, max_fee_per_gas: u128) -> EvNodeSignedTx {
562562
let tx = EvNodeTransaction {
563563
chain_id: 1,
@@ -597,11 +597,11 @@ mod tests {
597597
EvTransactionValidator::new(inner)
598598
}
599599

600-
/// Tests that non-sponsored EvNode transactions with insufficient sender balance
600+
/// Tests that non-sponsored `EvNode` transactions with insufficient sender balance
601601
/// are rejected with an Overdraft error.
602602
///
603-
/// BUG: Currently this test FAILS because validate_evnode does not check
604-
/// sender balance for non-sponsored EvNode transactions.
603+
/// BUG: Currently this test FAILS because `validate_evnode` does not check
604+
/// sender balance for non-sponsored `EvNode` transactions.
605605
#[test]
606606
fn non_sponsored_evnode_rejects_insufficient_balance() {
607607
let validator = create_test_validator();
@@ -635,7 +635,7 @@ mod tests {
635635
}
636636
}
637637

638-
/// Tests that non-sponsored EvNode transactions with sufficient balance are accepted.
638+
/// Tests that non-sponsored `EvNode` transactions with sufficient balance are accepted.
639639
#[test]
640640
fn non_sponsored_evnode_accepts_sufficient_balance() {
641641
let validator = create_test_validator();

crates/node/src/validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ where
231231
/// This is used for string matching since the error is a generic `Custom` error.
232232
const UNKNOWN_TX_TYPE_ERROR_MSG: &str = "unexpected tx type";
233233

234-
/// Checks if a PayloadError indicates an unknown transaction type (e.g., EvNode's 0x76).
234+
/// Checks if a `PayloadError` indicates an unknown transaction type (e.g., `EvNode`'s 0x76).
235235
///
236236
/// This uses string matching because alloy returns `alloy_rlp::Error::Custom("unexpected tx type")`
237237
/// which doesn't have a dedicated error variant. The constant `UNKNOWN_TX_TYPE_ERROR_MSG` is

0 commit comments

Comments
 (0)