feat(connection): migrate connection params#3650
Conversation
|
leaving this as a draft until #3640 is merged. |
Codecov Report❌ Patch coverage is 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
🚀 New features to boost your workflow:
|
812e67f to
b1c4e69
Compare
crodriguezvega
left a comment
There was a problem hiding this comment.
I think looks good, @DimitrisJim! I just left a couple of comments.
b1c4e69 to
1cb9375
Compare
|
|
||
| s.grpcClients[chain.Config().ChainID] = GRPCClients{ | ||
| ClientQueryClient: clienttypes.NewQueryClient(grpcConn), | ||
| ConnectionQueryClient: connectiontypes.NewQueryClient(grpcConn), |
There was a problem hiding this comment.
the wonders of allowing default initialization.
There was a problem hiding this comment.
I just stumbled upon this error when running the v7.1 upgrade test. :)
There was a problem hiding this comment.
Multiple victims of this unforgiving language design
0364f34 to
be0461b
Compare
damiannolan
left a comment
There was a problem hiding this comment.
Looks really good so far. Just left a couple of comments :)
acbc432 to
4ef0dc9
Compare
4ef0dc9 to
adb29be
Compare
damiannolan
left a comment
There was a problem hiding this comment.
Looks good to me! Great work @DimitrisJim 🙏
b3e9af6 to
52e6730
Compare
crodriguezvega
left a comment
There was a problem hiding this comment.
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.
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/).godoccomments.Files changedin the Github PR explorer.Codecov Reportin the comment section below once CI passes.