-
Notifications
You must be signed in to change notification settings - Fork 0
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
Credential: put Parse method public #30
Conversation
WalkthroughThe changes involve modifications to method names in the Go codebase, specifically within the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant MockDataverseTxClient
participant TxResponse
Client->>MockDataverseTxClient: SubmitClaims(credential)
MockDataverseTxClient->>TxResponse: Process claim submission
MockDataverseTxClient-->>Client: Return (TxResponse, error)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
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.
😌
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.
👍
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
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- credential/generate.go (1 hunks)
- credential/parser.go (1 hunks)
- testutil/dataverse_mocks.go (2 hunks)
Files skipped from review due to trivial changes (2)
- credential/generate.go
- credential/parser.go
@@ -13,6 +13,7 @@ import ( | |||
context "context" | |||
reflect "reflect" | |||
|
|||
types "github.com/cosmos/cosmos-sdk/types" |
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.
Avoid Modifying Generated Code Directly
The file dataverse_mocks.go
is generated code, as indicated by the comments at the top (Code generated by MockGen. DO NOT EDIT.
). Direct modifications to generated files are discouraged because they will be overwritten the next time the code is regenerated.
Recommendation: Update the source interface in dataverse/client.go
or adjust the mock generation command to reflect the changes in the SubmitClaims
method signature. This ensures that the generated mocks stay consistent with the actual interface definitions.
Also applies to: 113-118
Make the
Parse
method public allowing us to reuse the parsing of a VC from[]byte
in external lib.