Skip to content

feat(spec-specs,tests): apply transfer log costs to EIP-2780#2752

Open
gurukamath wants to merge 1 commit intoethereum:eips/amsterdam/eip-2780from
gurukamath:eip-2780/apply-transfer-log-cost
Open

feat(spec-specs,tests): apply transfer log costs to EIP-2780#2752
gurukamath wants to merge 1 commit intoethereum:eips/amsterdam/eip-2780from
gurukamath:eip-2780/apply-transfer-log-cost

Conversation

@gurukamath
Copy link
Copy Markdown
Contributor

@gurukamath gurukamath commented Apr 24, 2026

🗒️ Description

Aligns the EIP-2780 implementation and tests with the revision that introduces TRANSFER_LOG_COST = 1,756 for non-self value transfers, prices value-carrying CALL as a self-call when caller == to, and treats CALLCODE's value transfer as always self (no log, single STATE_UPDATE). SELFDESTRUCT now charges TRANSFER_LOG_COST when it moves non-zero balance to a different beneficiary.

Temporarily ignores tests/ported_static during fill while the ported static fixtures are updated for the new gas schedule. Fix for the broken ported static tests are in scope for a later PR

🔗 Related Issues or PRs

Issue #1940

✅ Checklist

Cute Animal Picture

Cute Animals - 3 of 12

Aligns the EIP-2780 implementation and tests with the revision that
introduces TRANSFER_LOG_COST = 1,756 for non-self value transfers,
prices value-carrying CALL as a self-call when caller == to, and
treats CALLCODE's value transfer as always self (no log, single
STATE_UPDATE). SELFDESTRUCT now charges TRANSFER_LOG_COST when it
moves non-zero balance to a different beneficiary.

Temporarily ignores tests/ported_static during fill while the ported
static fixtures are updated for the new gas schedule.
@gurukamath gurukamath changed the base branch from forks/amsterdam to eips/amsterdam/eip-2780 April 24, 2026 13:40
@gurukamath gurukamath changed the title Eip 2780/apply transfer log cost feat(amsterdam): apply transfer log costs to EIP-2780 Apr 24, 2026
@gurukamath gurukamath requested a review from danceratopz April 24, 2026 13:43
@danceratopz danceratopz self-assigned this Apr 26, 2026
@danceratopz danceratopz added A-spec-specs Area: Specification—The Ethereum specification itself (eg. `src/ethereum/*`) A-tests Area: Consensus tests. labels Apr 26, 2026
@danceratopz danceratopz changed the title feat(amsterdam): apply transfer log costs to EIP-2780 feat(spec-specs,tests): apply transfer log costs to EIP-2780 Apr 26, 2026
Copy link
Copy Markdown
Member

@danceratopz danceratopz left a comment

Choose a reason for hiding this comment

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

Thanks @gurukamath, this looks great. Good call to ignore ./tests/ported_static for now. We should only expend our energy here once the other gas repricings have been merged.

During review I spotted a few gaps regarding EIP-7708 in EIP-2780, I'd be grateful if you had time to provide feedback 🙏 ethereum/EIPs#11586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-spec-specs Area: Specification—The Ethereum specification itself (eg. `src/ethereum/*`) A-tests Area: Consensus tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants