-
Notifications
You must be signed in to change notification settings - Fork 17
feat: Add topic to approve response #207
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
base: develop
Are you sure you want to change the base?
Conversation
|
Claude finished @jakubuid's task —— View job 🔍 Code Review: Add topic to approve responseTodo List:
SummaryThis PR adds the ✅ Positive Observations
|
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.
Pull Request Overview
This PR adds support for returning the session topic when approving a session proposal. The change enables callers to receive the session topic immediately upon successful session approval rather than having to retrieve it separately.
- Modified the
ApproveSessionUseCaseto return the session topic through the success callback - Updated the
Sign.Params.ApproveandWallet.Params.SessionApprovemodels to include the session topic field - Refactored WalletKit code formatting for better readability
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| ApproveSessionUseCase.kt | Modified success callback to return session topic |
| SignProtocol.kt | Updated to pass session topic to success callback |
| Sign.kt | Added sessionTopic field to Approve params |
| WalletKit.kt | Updated to handle session topic in approve flow and improved code formatting |
| Wallet.kt | Added sessionTopic field to SessionApprove params |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
product/walletkit/src/main/kotlin/com/reown/walletkit/client/Wallet.kt
Outdated
Show resolved
Hide resolved
product/walletkit/src/main/kotlin/com/reown/walletkit/client/WalletKit.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…alletKit.kt Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…allet.kt Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Claude finished @jakubuid's task —— View job 🔄 Incremental Review: Add topic to approve response Todo List:
✅ Previous Issues Resolution Status:1. RESOLVED: Lambda Signature Mismatch in ApproveSessionUseCase.ktPrevious Issue: Lambda signature mismatch 2. CONFIRMED STILL PRESENT: Potential Breaking Change - WalletKit.kt:174{ approve -> onSuccess(params.copy(sessionTopic = approve.sessionTopic)) }Status: 3. CONFIRMED STILL PRESENT: Missing DocumentationStatus:
4. RESOLVED: Formatting Issue in WalletKit.ktPrevious Issue: Extra blank line at line 171 🔍 New Issues from GitHub Copilot Review:5. Parameter Type InconsistencyGitHub Copilot correctly identified that both
The Copilot suggestions appear to be based on outdated code state. 📋 SummaryResolved Since Last Review:
Remaining Issues:
Overall Assessment: The major compilation error has been fixed, but the potential breaking change and documentation issues remain. The implementation is functionally correct but could impact existing consumers. Recommendation: Consider documenting the behavior change and adding KDoc comments for the new |
|
Claude finished @jakubuid's task —— View job 🔄 Incremental Review: Add topic to approve response Todo List:
Issues Status From Previous Reviews:✅ RESOLVED: Compilation Error - ApproveSessionUseCase.kt:158Previous issue: Lambda signature mismatch ✅ RESOLVED: Formatting Issue - WalletKit.kt:171Previous issue: Extra blank line in parameter list
|
|
Claude finished @jakubuid's task —— View job 🔄 Incremental Review: Add topic to approve response Todo List:
🔍 Previous Issues Status Check✅ Issue Resolved: Lambda Signature MismatchPreviously flagged in ApproveSessionUseCase.kt:158
|
|
|
Will |



No description provided.