Skip to content
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

feat(eureka): Add gRPC query for Counterparty for a given client identifier #7120

Merged
merged 13 commits into from
Aug 26, 2024

Conversation

vishal-kanna
Copy link
Contributor

closes: #7116

@DimitrisJim
Copy link
Contributor

thanks! is there additional work needed here before making this ready for review?

@vishal-kanna vishal-kanna marked this pull request as ready for review August 22, 2024 05:47
Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

I contributed to the PR, but giving me approval. Thanks, @vishal-kanna!

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

left some minor comments, can push fixes for it soon


sdkCtx := sdk.UnwrapSDKContext(ctx)
creator, found := q.GetCreator(sdkCtx, req.ClientId)
if found {
Copy link
Contributor

Choose a reason for hiding this comment

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

are these needed? we get a default of "" either way?

// QueryClientRequest is the response type for the Query/Client RPC method
message QueryClientResponse {
string creator = 1;
Counterparty counterparty = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

no need for pointer?

testCases := []struct {
msg string
malleate func()
errMsg string
Copy link
Contributor

Choose a reason for hiding this comment

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

can we go with the expError pattern instead?

@DimitrisJim
Copy link
Contributor

cleaning these up!

@DimitrisJim DimitrisJim merged commit 5d62925 into cosmos:feat/ibc-eureka Aug 26, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants