-
Notifications
You must be signed in to change notification settings - Fork 80
Revert: Add parameter validation to allbridge lf 14440 [GenericErrors v1.0.0,AllBridgeFacet v2.0.0,ChainflipFacet v1.0.0,RelayFacet v1.0.0,SwapperV2 v1.0.0,LibAsset v2.1.0,ReceiverChainflip v1.0.0] #1280
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
Revert: Add parameter validation to allbridge lf 14440 [GenericErrors v1.0.0,AllBridgeFacet v2.0.0,ChainflipFacet v1.0.0,RelayFacet v1.0.0,SwapperV2 v1.0.0,LibAsset v2.1.0,ReceiverChainflip v1.0.0] #1280
Conversation
This reverts commit efa7976.
|
Warning Rate limit exceeded@0xDEnYO has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 19 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThis change removes the Changes
Possibly related PRs
Suggested labels
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🤖 GitHub Action: Security Alerts Review 🔍🟢 Dismissed Security Alerts with Comments 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: 🟢 View Alert - File: ✅ No unresolved security alerts! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
src/Facets/RelayFacet.sol (1)
105-108: Constructor lacks parameter validation.The constructor accepts
_relayReceiverand_relaySolverparameters but doesn't validate them for zero addresses. This could lead to contract deployment in an undesired state, as flagged by the security analysis.According to the coding guidelines, constructor inputs should be validated rigorously. Add validation to prevent zero addresses:
constructor(address _relayReceiver, address _relaySolver) { + if (_relayReceiver == address(0) || _relaySolver == address(0)) { + revert InvalidConfig(); + } relayReceiver = _relayReceiver; relaySolver = _relaySolver; }Note: You'll need to import
InvalidConfigfrom../Errors/GenericErrors.sol.
Test Coverage ReportLine Coverage: 84.20% (2239 / 2659 lines) |
Reverts #1275