-
Notifications
You must be signed in to change notification settings - Fork 629
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(connection): migrate connection params #3650
feat(connection): migrate connection params #3650
Conversation
leaving this as a draft until #3640 is merged. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3650 +/- ##
==========================================
- Coverage 78.80% 78.74% -0.06%
==========================================
Files 187 187
Lines 12846 12888 +42
==========================================
+ Hits 10123 10149 +26
- Misses 2292 2308 +16
Partials 431 431
|
812e67f
to
b1c4e69
Compare
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.
I think looks good, @DimitrisJim! I just left a couple of comments.
b1c4e69
to
1cb9375
Compare
e2e/testsuite/grpc_query.go
Outdated
@@ -73,6 +73,7 @@ func (s *E2ETestSuite) InitGRPCClients(chain *cosmos.CosmosChain) { | |||
|
|||
s.grpcClients[chain.Config().ChainID] = GRPCClients{ | |||
ClientQueryClient: clienttypes.NewQueryClient(grpcConn), | |||
ConnectionQueryClient: connectiontypes.NewQueryClient(grpcConn), |
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.
the wonders of allowing default initialization.
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.
I just stumbled upon this error when running the v7.1 upgrade test. :)
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.
Multiple victims of this unforgiving language design
0364f34
to
be0461b
Compare
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.
Looks really good so far. Just left a couple of comments :)
acbc432
to
4ef0dc9
Compare
4ef0dc9
to
adb29be
Compare
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.
Looks good to me! Great work @DimitrisJim 🙏
b3e9af6
to
52e6730
Compare
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.
Great work, @DimitrisJim!
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
e1d60fe
to
1925102
Compare
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil { | ||
return errorsmod.Wrapf(ibcerrors.ErrInvalidAddress, "string could not be parsed as address: %v", err) | ||
} | ||
return msg.Params.Validate() |
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.
Params.Validate()
returns a fmt.Errorf
error, this will result in the default SDK internal error
code of 1 since no registered error is returned. Previously this validation was only called in InitGenesis where you don't need to return sdk registered errors, we may want to update this now?
Description
closes: #3501
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.