Skip to content

evm: Improve readability of SELFDESTRUCT refund - #1694

Merged
chfast merged 1 commit into
masterfrom
selfdestruct_rework
Sep 2, 2026
Merged

evm: Improve readability of SELFDESTRUCT refund#1694
chfast merged 1 commit into
masterfrom
selfdestruct_rework

Conversation

@chfast

@chfast chfast commented Sep 2, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The refactor is behaviorally equivalent and covered by existing refund tests.

Pull request overview

Refactors SELFDESTRUCT refund handling for readability without changing behavior.

Changes:

  • Names the host result first_time.
  • Combines nested refund conditions.
File summaries
File Description
lib/evmone/instructions.hpp Simplifies SELFDESTRUCT refund logic.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codspeed-hq

codspeed-hq Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 129 untouched benchmarks


Comparing selfdestruct_rework (2979169) with master (a203f55)

Open in CodSpeed

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.98%. Comparing base (a203f55) to head (2979169).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1694   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files         181      181           
  Lines       16199    16199           
  Branches     3724     3723    -1     
=======================================
  Hits        15873    15873           
  Misses        248      248           
  Partials       78       78           
Flag Coverage Δ
eest-develop 87.14% <100.00%> (ø)
eest-develop-gmp 26.17% <100.00%> (ø)
eest-legacy 16.94% <100.00%> (ø)
eest-libsecp256k1 28.38% <100.00%> (ø)
eest-stable 87.10% <100.00%> (ø)
evmone-unittests 94.24% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
core 96.19% <100.00%> (ø)
tooling 94.06% <ø> (ø)
tests 99.81% <ø> (ø)
Files with missing lines Coverage Δ
lib/evmone/instructions.hpp 99.76% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chfast
chfast merged commit af66b3d into master Sep 2, 2026
26 checks passed
@chfast
chfast deleted the selfdestruct_rework branch September 2, 2026 09:58
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.

2 participants