Skip to content

Commit 2f7e7b8

Browse files
Yurist-85kioqq
authored andcommitted
fix: fix messages amino names
1 parent 675091f commit 2f7e7b8

File tree

4 files changed

+52
-47
lines changed

4 files changed

+52
-47
lines changed

proto/haqq/ucdao/v1/tx.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ message MsgTransferOwnershipResponse {}
8585
// MsgTransferOwnershipWithRatio allows an account transfer the ownership of shares to another account with ratio.
8686
message MsgTransferOwnershipWithRatio {
8787
option (cosmos.msg.v1.signer) = "owner";
88-
option (amino.name) = "haqq/ucdao/MsgTransferOwnershipWithRatio";
88+
option (amino.name) = "haqq/ucdao/MsgTransferWithRatio";
8989

9090
option (gogoproto.equal) = false;
9191
option (gogoproto.goproto_getters) = false;
@@ -109,7 +109,7 @@ message MsgTransferOwnershipWithRatioResponse {
109109
// with certain amount of coins.
110110
message MsgTransferOwnershipWithAmount {
111111
option (cosmos.msg.v1.signer) = "owner";
112-
option (amino.name) = "haqq/ucdao/MsgTransferOwnershipWithAmount";
112+
option (amino.name) = "haqq/ucdao/MsgTransferWithAmount";
113113

114114
option (gogoproto.equal) = false;
115115
option (gogoproto.goproto_getters) = false;

x/ucdao/types/codec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
2222
legacy.RegisterAminoMsg(cdc, &MsgFundLegacy{}, "haqq/dao/MsgFund")
2323
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnership{}, "haqq/ucdao/MsgTransferOwnership")
2424
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnershipWithRatio{}, "haqq/ucdao/MsgTransferWithRatio")
25-
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnershipWithAmount{}, "haqq/ucdao/MsgTransferOwnershipAmount")
25+
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnershipWithAmount{}, "haqq/ucdao/MsgTransferWithAmount")
2626

2727
cdc.RegisterConcrete(Params{}, "haqq/x/ucdao/Params", nil)
2828
}

x/ucdao/types/msg.go

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ func NewMsgFund(amount sdk.Coins, depositor sdk.AccAddress) *MsgFund {
2929
}
3030
}
3131

32+
func init() {
33+
// Register the MsgFundLegacy type with the old name to support history data reading.
34+
proto.RegisterType((*MsgFundLegacy)(nil), "haqq.dao.v1.MsgFund")
35+
}
36+
3237
// Route returns the MsgFundCommunityPool message route.
3338
func (msg MsgFund) Route() string { return ModuleName }
3439

x/ucdao/types/tx.pb.go

+44-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)