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(contracts): OZ-L01 Implementation Keeps Functionalities for Deprecated Variables #1094

Merged
merged 3 commits into from Feb 5, 2024

Conversation

zimpha
Copy link
Member

@zimpha zimpha commented Jan 29, 2024

Purpose or design rationale of this PR

This PR fix the following issue reported by Openzepplin: L-01 Implementation Keeps Functionalities for Deprecated Variables

At line 82 of L1GatewayRouter.sol, it is explained that the ethGateway parameter is no longer in use. However, the logic that makes use of/changes this variable, such as the check in the initialize function and the setETHGateway function, is maintained.

If a variable is no longer in use, consider removing the logic that uses it.

PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • fix: A bug fix

Deployment tag versioning

Has tag in common/version.go been updated or have you added bump-version label to this PR?

  • No, this PR doesn't involve a new deployment, git tag, docker image tag
  • Yes

Breaking change label

Does this PR have the breaking-change label?

  • No, this PR is not a breaking change
  • Yes

@zimpha zimpha added the bug Something isn't working label Jan 29, 2024
@zimpha zimpha self-assigned this Jan 29, 2024
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1901a32) 57.07% compared to head (223538d) 57.03%.
Report is 1 commits behind head on develop.

❗ Current head 223538d differs from pull request most recent head 0705fb1. Consider uploading reports for the commit 0705fb1 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1094      +/-   ##
===========================================
- Coverage    57.07%   57.03%   -0.05%     
===========================================
  Files          150      150              
  Lines        11196    11148      -48     
===========================================
- Hits          6390     6358      -32     
+ Misses        4361     4346      -15     
+ Partials       445      444       -1     
Flag Coverage Δ
contracts 57.43% <ø> (-0.11%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

HAOYUatHZ
HAOYUatHZ previously approved these changes Jan 29, 2024
Thegaram
Thegaram previously approved these changes Jan 31, 2024
Copy link
Contributor

@Thegaram Thegaram left a comment

Choose a reason for hiding this comment

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

I'd recommend removing setETHGateway. Other than that it looks good.

@zimpha zimpha dismissed stale reviews from Thegaram and HAOYUatHZ via 223538d February 1, 2024 06:33
@Thegaram Thegaram merged commit adbcd7f into develop Feb 5, 2024
4 checks passed
@Thegaram Thegaram deleted the fix/oz_l01 branch February 5, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants