Skip to content

Commit

Permalink
fix: fix messages amino names
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurist-85 committed Oct 17, 2024
1 parent 5035bf5 commit ee3ec69
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 47 deletions.
4 changes: 2 additions & 2 deletions proto/haqq/ucdao/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ message MsgTransferOwnershipResponse {}
// MsgTransferOwnershipWithRatio allows an account transfer the ownership of shares to another account with ratio.
message MsgTransferOwnershipWithRatio {
option (cosmos.msg.v1.signer) = "owner";
option (amino.name) = "haqq/ucdao/MsgTransferOwnershipWithRatio";
option (amino.name) = "haqq/ucdao/MsgTransferWithRatio";

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

option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
Expand Down
2 changes: 1 addition & 1 deletion x/ucdao/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgFundLegacy{}, "haqq/dao/MsgFund")
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnership{}, "haqq/ucdao/MsgTransferOwnership")
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnershipWithRatio{}, "haqq/ucdao/MsgTransferWithRatio")
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnershipWithAmount{}, "haqq/ucdao/MsgTransferOwnershipAmount")
legacy.RegisterAminoMsg(cdc, &MsgTransferOwnershipWithAmount{}, "haqq/ucdao/MsgTransferWithAmount")

cdc.RegisterConcrete(Params{}, "haqq/x/ucdao/Params", nil)
}
Expand Down
5 changes: 5 additions & 0 deletions x/ucdao/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ func NewMsgFund(amount sdk.Coins, depositor sdk.AccAddress) *MsgFund {
}
}

func init() {
// Register the MsgFundLegacy type with the old name to support history data reading.
proto.RegisterType((*MsgFundLegacy)(nil), "haqq.dao.v1.MsgFund")
}

// Route returns the MsgFundCommunityPool message route.
func (msg MsgFund) Route() string { return ModuleName }

Expand Down
88 changes: 44 additions & 44 deletions x/ucdao/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee3ec69

Please sign in to comment.