Skip to content

Commit

Permalink
feat(rollapp): register rollapp amino messages to support EIP712 (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzhakBokris authored Sep 16, 2024
1 parent 7e83549 commit f140cd1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion x/rollapp/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
authzcodec "github.com/cosmos/cosmos-sdk/x/authz/codec"

govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
)
Expand Down Expand Up @@ -35,5 +36,15 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {

var (
Amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
ModuleCdc = codec.NewAminoCodec(Amino)
)

func init() {
RegisterCodec(Amino)
// 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
sdk.RegisterLegacyAminoCodec(Amino)
RegisterCodec(authzcodec.Amino)

Amino.Seal()
}

0 comments on commit f140cd1

Please sign in to comment.