Skip to content

fix(handler): respect is_fee_charge_disabled in calculate_caller_fee#3401

Merged
rakita merged 1 commit intobluealloy:mainfrom
bluebluesaku:config
Feb 23, 2026
Merged

fix(handler): respect is_fee_charge_disabled in calculate_caller_fee#3401
rakita merged 1 commit intobluealloy:mainfrom
bluebluesaku:config

Conversation

@bluebluesaku
Copy link
Copy Markdown
Contributor

Hi, I was testing eth_call with disable_fee_charge=true but fees were still getting deducted. Traced it down to calculate_caller_fee - it checks is_balance_check_disabled but completely skips is_fee_charge_disabled.

Funny thing is op-revm already has this check (handler.rs:158), just missing in the main handler.

Before: fees deducted regardless of config
After: early return with original balance when fee charge disabled

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 5, 2026

Merging this PR will not alter performance

✅ 173 untouched benchmarks


Comparing bluebluesaku:config (32c52b5) with main (8bf5191)

Open in CodSpeed

Copy link
Copy Markdown
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

@rakita rakita merged commit de746c6 into bluealloy:main Feb 23, 2026
31 checks passed
@github-actions github-actions bot mentioned this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants