Skip to content

Commit

Permalink
chore: replace legacy with cdc
Browse files Browse the repository at this point in the history
  • Loading branch information
emidev98 committed May 2, 2023
1 parent a579746 commit 721086a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions x/alliance/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package types

import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy"
"github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -12,10 +11,10 @@ import (
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgDelegate{}, "alliance/MsgDelegate")
legacy.RegisterAminoMsg(cdc, &MsgRedelegate{}, "alliance/MsgRedelegate")
legacy.RegisterAminoMsg(cdc, &MsgUndelegate{}, "alliance/MsgUndelegate")
legacy.RegisterAminoMsg(cdc, &MsgClaimDelegationRewards{}, "alliance/MsgClaimDelegationRewards")
cdc.RegisterConcrete(&MsgDelegate{}, "alliance/MsgDelegate", nil)
cdc.RegisterConcrete(&MsgRedelegate{}, "alliance/MsgRedelegate", nil)
cdc.RegisterConcrete(&MsgUndelegate{}, "alliance/MsgUndelegate", nil)
cdc.RegisterConcrete(&MsgClaimDelegationRewards{}, "alliance/MsgClaimDelegationRewards", nil)

cdc.RegisterConcrete(&MsgCreateAllianceProposal{}, "alliance/MsgCreateAllianceProposal", nil)
cdc.RegisterConcrete(&MsgUpdateAllianceProposal{}, "alliance/MsgUpdateAllianceProposal", nil)
Expand Down

0 comments on commit 721086a

Please sign in to comment.