Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: arbitrum chain id check in all ChainSpecificUtil methods #10756

Merged
merged 4 commits into from
Sep 27, 2023

Conversation

makramkd
Copy link
Contributor

@makramkd makramkd commented Sep 22, 2023

The arbitrum chain id check needs to be the same in all of the methods exported in the ChainSpecificUtil contract. Prior to this change getBlockNumber, getCurrentTxL1GasFees and getL1CalldataGasCost did not correctly check for all possible arbitrum chain ids.

To prevent this kind of error in the future, a new private function isArbitrumChainId was created and used in all methods that need to check the chain id.

Followup to #10615

The arbitrum chain id check needs to be the same in all of the methods
exported in the ChainSpecificUtil contract. Prior to this change
getBlockNumber, getCurrentTxL1GasFees and getL1CalldataGasCost did not
correctly check for all possible arbitrum chain ids.

To prevent this kind of error in the future, a new private function
isArbitrumChainId was created and used in all methods that need to check
the chain id.
@makramkd makramkd requested a review from a team September 22, 2023 08:55
@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@makramkd makramkd added this pull request to the merge queue Sep 22, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 22, 2023
@makramkd makramkd added this pull request to the merge queue Sep 22, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 22, 2023
@makramkd makramkd enabled auto-merge September 27, 2023 12:33
@makramkd makramkd added this pull request to the merge queue Sep 27, 2023
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 27, 2023
@makramkd makramkd added this pull request to the merge queue Sep 27, 2023
Merged via the queue into develop with commit 8ed253b Sep 27, 2023
@makramkd makramkd deleted the fix/chain-specific-util-arb-sepolia branch September 27, 2023 14:52
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