From 1f81a0c97233d6f43a4371d01e0b9c667811efce Mon Sep 17 00:00:00 2001 From: Preston Evans Date: Wed, 24 Dec 2025 18:56:37 +0100 Subject: [PATCH 1/2] Fix doc comment on Handler::validate_against_state_and_deduct_caller --- crates/handler/src/handler.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/handler/src/handler.rs b/crates/handler/src/handler.rs index 1b96c3fbe7..e76e665e63 100644 --- a/crates/handler/src/handler.rs +++ b/crates/handler/src/handler.rs @@ -295,7 +295,11 @@ pub trait Handler { apply_eip7702_auth_list(evm.ctx_mut()) } - /// Deducts maximum possible fee and transfer value from caller's balance. + /// Deducts the maximum possible fee from caller's balance. + /// + /// If cfg.is_balance_check_disabled, this method will add back enough funds to ensure that + /// the caller's balance is at least tx.value() before returning. Note that the amount of funds + /// added back in this case may exceed the maximum fee. /// /// Unused fees are returned to caller after execution completes. #[inline] From d5f097e72ce8693f9d6378d9fe80cdfd327ec029 Mon Sep 17 00:00:00 2001 From: Preston Evans Date: Wed, 24 Dec 2025 18:58:22 +0100 Subject: [PATCH 2/2] Fmt --- crates/handler/src/handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/handler/src/handler.rs b/crates/handler/src/handler.rs index e76e665e63..96b1911345 100644 --- a/crates/handler/src/handler.rs +++ b/crates/handler/src/handler.rs @@ -295,7 +295,7 @@ pub trait Handler { apply_eip7702_auth_list(evm.ctx_mut()) } - /// Deducts the maximum possible fee from caller's balance. + /// Deducts the maximum possible fee from caller's balance. /// /// If cfg.is_balance_check_disabled, this method will add back enough funds to ensure that /// the caller's balance is at least tx.value() before returning. Note that the amount of funds