Skip to content

Commit

Permalink
revert register code from gov in others module
Browse files Browse the repository at this point in the history
  • Loading branch information
TuSoict committed Oct 28, 2024
1 parent 36a1f6e commit 3914bc8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom/params/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types

import (
govtypes "github.com/classic-terra/core/v3/custom/gov/types/v2lunc1"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/x/params/types/proposal"
)
Expand All @@ -9,3 +10,7 @@ import (
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&proposal.ParameterChangeProposal{}, "params/ParameterChangeProposal", nil)
}

func init() {
govtypes.RegisterProposalTypeCodec(&proposal.ParameterChangeProposal{}, "params/ParameterChangeProposal")
}
6 changes: 6 additions & 0 deletions custom/upgrade/types/codec.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types

import (
govtypes "github.com/classic-terra/core/v3/custom/gov/types/v2lunc1"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/x/upgrade/types"
)
Expand All @@ -11,3 +12,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&types.SoftwareUpgradeProposal{}, "upgrade/SoftwareUpgradeProposal", nil)
cdc.RegisterConcrete(&types.CancelSoftwareUpgradeProposal{}, "upgrade/CancelSoftwareUpgradeProposal", nil)
}

func init() {
govtypes.RegisterProposalTypeCodec(&types.SoftwareUpgradeProposal{}, "upgrade/SoftwareUpgradeProposal")
govtypes.RegisterProposalTypeCodec(&types.CancelSoftwareUpgradeProposal{}, "upgrade/CancelSoftwareUpgradeProposal")
}

0 comments on commit 3914bc8

Please sign in to comment.