Skip to content

Commit 2b3a3aa

Browse files
docs: description of Handler::validate_against_state_and_deduct_caller should match responsibilities (#3256)
* Fix doc comment on Handler::validate_against_state_and_deduct_caller * Fmt
1 parent e5c8b25 commit 2b3a3aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/handler/src/handler.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,11 @@ pub trait Handler {
295295
apply_eip7702_auth_list(evm.ctx_mut())
296296
}
297297

298-
/// Deducts maximum possible fee and transfer value from caller's balance.
298+
/// Deducts the maximum possible fee from caller's balance.
299+
///
300+
/// If cfg.is_balance_check_disabled, this method will add back enough funds to ensure that
301+
/// the caller's balance is at least tx.value() before returning. Note that the amount of funds
302+
/// added back in this case may exceed the maximum fee.
299303
///
300304
/// Unused fees are returned to caller after execution completes.
301305
#[inline]

0 commit comments

Comments
 (0)