-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
contracts-bedrock: fix standard bridge token pair checking #4932
Conversation
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #4932 +/- ##
===========================================
+ Coverage 40.99% 41.01% +0.01%
===========================================
Files 339 340 +1
Lines 20789 20799 +10
Branches 771 772 +1
===========================================
+ Hits 8523 8531 +8
- Misses 11609 11612 +3
+ Partials 657 656 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Hey @tynes! This PR has merge conflicts. Please fix them before continuing review. |
This ensures that the legacy interface is only used for legacy tokens and that the modern interface can be used on the OptimismMintableERC20 token. Note that this is not the gas efficient way to implement this, but its ok for now as we are focused on minimal diff changes. In the future we could refactor this code to ensure that the ERC165Checker calls a minimal amount of times.
Also fix compiler warning
b331c92
to
3380a61
Compare
@maurelian I've added tests for legacy tokens and included the impl of the legacy token since this has been waiting in review for awhile, I figured I'd just push the commit here |
This PR has been added to the merge queue, and will be merged soon. |
This PR is next in line to be merged, and will be merged as soon as checks pass. |
Description
This ensures that the legacy interface is only used for legacy tokens and that the modern interface can be used on the OptimismMintableERC20 token.
Note that this is not the gas efficient way to implement this, but its ok for now as we are focused on minimal diff changes.
In the future we could refactor this code to ensure that the ERC165Checker calls a minimal amount of times.
Fixes CLI-3370