Skip to content

Conversation

vishnumad
Copy link
Contributor

Summary

  • Add responseId to encrypted response object
  • Add fallback to CB Wallet if requestId is not present

How did you test your changes?

Manually tested that responseId is present on encrypted response message

  {
    "uuid": "hello-world",
    "version": "1.0.0",
    "sender": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEOsVDIG7VzE2oqzcSCgbK/NgBnA6FyPTHZuYVk+R53SrP5j5/1sYkwzD7PQzbXn3d3U0DeH74VvGEH8yCux0nPw==",
    "content": {
      "response": {
        "requestId": "my-request-id",
        "data": "SQMffejbJhOPwU/pCAh3VpclIDH5k2T+Ex19YDA3dBguv1GXy5ZOzK5E/1HyX2iLyb3Od/XrvwbX9xoe369vU8VGuuYjZsxkfBg3AXye/PguUccydkv4I7KSyROzkxCVFkMRfLyFsIbhZ8TetfklCrf85ihwFcfW9fVAUzWkuuiFpJsNgonQSWIqdMrQNyNU19VfCNr/jGb7xw1ZHdA="
      }
    },
    "timestamp": 1670352972555,
    "callbackUrl": "https://myapp.com"
  }

@vishnumad vishnumad requested a review from bangtoven December 6, 2022 19:27
return instances[host]?.handleResponse(uri) ?: false
} catch (e: IllegalStateException) {
// Fallback to CB Wallet instance
return instances[DefaultWallets.coinbaseWallet.url]?.handleResponse(uri) ?: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@cb-heimdall
Copy link
Collaborator

Review Error for AMITGOELNY @ 2022-12-06 19:33:23 UTC
User must have write permissions to review

@vishnumad vishnumad merged commit 3cd5080 into master Dec 6, 2022
@vishnumad vishnumad deleted the vishnu/android-serialization branch December 6, 2022 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants