Skip to content

Commit

Permalink
feat: add gov codec
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed May 17, 2023
1 parent d4d319b commit 828775f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/subspaces/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
authzcodec "github.com/cosmos/cosmos-sdk/x/authz/codec"
govcodec "github.com/cosmos/cosmos-sdk/x/gov/codec"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand Down Expand Up @@ -96,4 +97,8 @@ func init() {
// Register all Amino interfaces and concrete types on the authz Amino codec so that this can later be
// used to properly serialize MsgGrant and MsgExec instances
RegisterLegacyAminoCodec(authzcodec.Amino)

// Register all Amino interfaces and concrete types on the gov Amino codec so that this can later be
// used to properly serialize MsgSubmitProposal instances
RegisterLegacyAminoCodec(govcodec.Amino)
}

0 comments on commit 828775f

Please sign in to comment.