Skip to content

remove unnecessary check#12914

Merged
AmadiMichael merged 2 commits intodevelopfrom
sc/systemconfig-unnecessary-check
Nov 16, 2024
Merged

remove unnecessary check#12914
AmadiMichael merged 2 commits intodevelopfrom
sc/systemconfig-unnecessary-check

Conversation

@AmadiMichael
Copy link
Contributor

Removes unnecessary check in systemConfig.sol.

The check is already done in the _setGasLimit(uint64) function. This removed code path is never hit and marked as uncovered by code coverage

@AmadiMichael AmadiMichael requested a review from a team as a code owner November 13, 2024 12:13
@smartcontracts
Copy link
Contributor

Since this changes a prod contract we should be careful here, cc @maurelian for review

@AmadiMichael AmadiMichael added this pull request to the merge queue Nov 16, 2024
Merged via the queue into develop with commit 78fed1e Nov 16, 2024
@AmadiMichael AmadiMichael deleted the sc/systemconfig-unnecessary-check branch November 16, 2024 01:45
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.

3 participants