-
Notifications
You must be signed in to change notification settings - Fork 363
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
chore: refactor MessagIdHook/ISM tests into a common ExternalBridgeTest
contract
#4490
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4490 +/- ##
==========================================
+ Coverage 81.37% 82.22% +0.84%
==========================================
Files 100 100
Lines 1412 1412
Branches 178 178
==========================================
+ Hits 1149 1161 +12
+ Misses 263 251 -12
|
ExternalBridgeTest
contractExternalBridgeTest
contract
Description
We currently have 6 different versions of ISMs derived from AbstractMessageIdAuthorizedIsm:
But all of them have their own custom test suite right now, with widely overlapping testing areas. For standardizing the tests, I've created a base test contract
ExternalBridgeTest
that handles the common tests. This has a few benefits:I have moved OPL2ToL1, ArbL2ToL1, OPStack, and ERC5164 to the new base test, and I'll forgo the rest for now because of the time sensitivity of audit remediations. I've created an issue tracking the remaining work here: https://github.com/hyperlane-xyz/issues/issues/1384
Drive-by changes
None
Related issues
Related to https://github.com/chainlight-io/2024-08-hyperlane/issues/3
Backward compatibility
Yes
Testing
Unit