9311f9efd0
* Migrate keybase back to Cosmos-sdk using temporary fork * Cleaned up other affected code * Change to updated tendermint * fmt * Change auth codec update * clean up codec registration to respective packages * Fix import fmt * Remove no longer necessary replace * Fix function comment
24 lines
512 B
Go
24 lines
512 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
)
|
|
|
|
// ModuleCdc defines the codec to be used by evm module
|
|
var ModuleCdc = codec.New()
|
|
|
|
func init() {
|
|
cdc := codec.New()
|
|
|
|
RegisterCodec(cdc)
|
|
codec.RegisterCrypto(cdc)
|
|
|
|
ModuleCdc = cdc.Seal()
|
|
}
|
|
|
|
// RegisterCodec registers concrete types and interfaces on the given codec.
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
cdc.RegisterConcrete(&EthereumTxMsg{}, "ethermint/MsgEthereumTx", nil)
|
|
cdc.RegisterConcrete(&EmintMsg{}, "ethermint/MsgEmint", nil)
|
|
}
|