Skip to content

refactor(gas_params): add dedicated GasIds for sstore_refund#3310

Merged
rakita merged 1 commit intomainfrom
refactor/sstore-refund-params
Jan 14, 2026
Merged

refactor(gas_params): add dedicated GasIds for sstore_refund#3310
rakita merged 1 commit intomainfrom
refactor/sstore-refund-params

Conversation

@rakita
Copy link
Member

@rakita rakita commented Jan 14, 2026

Summary

  • Add sstore_set_refund and sstore_reset_refund GasIds (indices 37-38)
  • Update sstore_refund to use these new dedicated parameters instead of sstore_set_without_load_cost and sstore_reset_without_cold_load_cost
  • This decouples sstore_refund from sstore_dynamic_gas allowing independent parameter configuration while maintaining the same values

Test plan

  • Existing test_gas_id_name_and_from_str_coverage test updated and passing
  • Clippy passes with no warnings

Add `sstore_set_refund` and `sstore_reset_refund` GasIds so that
`sstore_refund` no longer depends on `sstore_set_without_load_cost`
and `sstore_reset_without_cold_load_cost` which are used in
`sstore_dynamic_gas`. This allows the two functions to have
independent gas parameters while maintaining the same values.
@rakita rakita force-pushed the refactor/sstore-refund-params branch from 3bc7889 to c31de6e Compare January 14, 2026 19:21
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 14, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing refactor/sstore-refund-params (c31de6e) with main (5eedd20)

Summary

✅ 173 untouched benchmarks

@rakita rakita force-pushed the refactor/sstore-refund-params branch 2 times, most recently from 53c8011 to c31de6e Compare January 14, 2026 19:29
@rakita rakita merged commit a1490db into main Jan 14, 2026
57 of 61 checks passed
@rakita rakita deleted the refactor/sstore-refund-params branch January 14, 2026 19:54
@github-actions github-actions bot mentioned this pull request Jan 14, 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.

1 participant