chore: adding sdk.Msg impl for ics27 MsgRegisterAccount#2081
chore: adding sdk.Msg impl for ics27 MsgRegisterAccount#2081damiannolan merged 13 commits intomainfrom
sdk.Msg impl for ics27 MsgRegisterAccount#2081Conversation
…nterfaces and boilerplate
…cosmos/ibc-go into damian/2051-add-register-account-protos
…hub.com:cosmos/ibc-go into damian/2053-impl-sdk-msg-interface-register-acc
charleenfei
left a comment
There was a problem hiding this comment.
nit comment but otherwise LGTM!!
| ) | ||
|
|
||
| var ( | ||
| testAccAddress = "cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs" |
There was a problem hiding this comment.
super nit but maybe we can add this a const file?
There was a problem hiding this comment.
I've added TestAccAddress to testing/values.go
|
|
||
| if _, err := sdk.AccAddressFromBech32(msg.Owner); err != nil { | ||
| return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse owner address: %s", msg.Owner) | ||
| } |
There was a problem hiding this comment.
do we also need a validation on the version?
There was a problem hiding this comment.
I don't think we can since this version may be wrapped with many different versions (ics29 and so forth). There's no guarantee that the provided version is an ics27 version at the top level
colin-axner
left a comment
There was a problem hiding this comment.
Do we have a changelog entry already for adding this message type?
|
|
||
| if _, err := sdk.AccAddressFromBech32(msg.Owner); err != nil { | ||
| return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "failed to parse owner address: %s", msg.Owner) | ||
| } |
There was a problem hiding this comment.
I don't think we can since this version may be wrapped with many different versions (ics29 and so forth). There's no guarantee that the provided version is an ics27 version at the top level
Codecov Report
@@ Coverage Diff @@
## main #2081 +/- ##
==========================================
+ Coverage 79.94% 80.03% +0.08%
==========================================
Files 170 170
Lines 11801 11813 +12
==========================================
+ Hits 9434 9454 +20
+ Misses 1950 1941 -9
- Partials 417 418 +1
|
* adding new controller msg service, register account types, register interfaces and boilerplate * fixing typo * fixing protodoc and regenerate godocs * adding channel id to MsgRegisterAccountResponse * adding sdk.Msg impl for MsgRegisterAccount * formatting imports * adding additional tests with multiple versions, creating TestAccAddress const (cherry picked from commit 94d0840) # Conflicts: # modules/apps/27-interchain-accounts/controller/types/msgs.go # testing/values.go
…2108) * adding new controller msg service, register account types, register interfaces and boilerplate * fixing typo * fixing protodoc and regenerate godocs * adding channel id to MsgRegisterAccountResponse * adding sdk.Msg impl for MsgRegisterAccount * formatting imports * adding additional tests with multiple versions, creating TestAccAddress const (cherry picked from commit 94d0840) # Conflicts: # modules/apps/27-interchain-accounts/controller/types/msgs.go # testing/values.go Co-authored-by: Damian Nolan <damiannolan@gmail.com>
Description
sdk.MsginterfaceValidateBasicGetSignerscloses: #2053
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.Unreleasedsection inCHANGELOG.mdFiles changedin the Github PR explorerCodecov Reportin the comment section below once CI passes