-
Notifications
You must be signed in to change notification settings - Fork 235
feat: add hashed address check to hook receiver validation #399
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
Conversation
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughA new test was added to verify ICS20 packet handling when the receiver uses a hashed Cosmos SDK address. The Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Suite
participant Handler as ICS20 Packet Handler
participant Validator as validateReceiver
participant Contract as Move Contract
Test->>Handler: Send ICS20 packet with hashed receiver
Handler->>Validator: validateReceiver(msg, receiver, ac)
Validator-->>Handler: Return error (if ACL not set)
Test->>Handler: Set ACL, resend packet
Handler->>Validator: validateReceiver(msg, receiver, ac)
Validator-->>Handler: Success
Handler->>Contract: Execute Move function
Contract-->>Handler: State updated
Handler-->>Test: Confirm contract state incremented
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🪧 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 (
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #399 +/- ##
=======================================
Coverage 40.18% 40.18%
=======================================
Files 294 294
Lines 27542 27543 +1
=======================================
+ Hits 11067 11068 +1
Misses 14772 14772
Partials 1703 1703
🚀 New features to boost your workflow:
|
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.
LGTM
close #396
allow to execute hook receiver as both
receiver == functionIdentifier
andreceiver == bech32("init", sha256(functionIdentifier))