-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix: check every module's Msg #271
Conversation
add sdk.Msg implement for missing msg
x/sp/types/codec.go
Outdated
@@ -14,6 +14,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { | |||
cdc.RegisterConcrete(&MsgEditStorageProvider{}, "sp/EditStorageProvider", nil) | |||
cdc.RegisterConcrete(&MsgUpdateSpStoragePrice{}, "sp/UpdateSpStoragePrice", nil) | |||
cdc.RegisterConcrete(&DepositAuthorization{}, "sp/DepositAuthorization", nil) | |||
cdc.RegisterConcrete(&MsgUpdateParams{}, "sp/MsgUpdateParams", nil) |
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.
Why is only this one with the Msg
prefix? And isn't Amino already deprecated?
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.
Can we just remove this func func RegisterCodec(cdc *codec.LegacyAmino)
?
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.
It's a mistake. I add it when tested, it will be deleted.
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.
func RegisterCodec(cdc *codec.LegacyAmino)
can not remove, it was used in
(AppModuleBasic) RegisterLegacyAminoCodec
, which is used by greendfield-cosmos-sdk
.
Description
check every module‘s Msg implementation:
RegisterInterfaces
methodRegisterCodec
is obsolete and has not been processed yetsdk.Msg
Rationale
they were used by GreenfieldScan.
Example
NA
Changes
Notable changes: