Moved crypto codec registration to module (#79)

This commit is contained in:
Austin Abell
2019-08-11 10:50:30 -04:00
committed by GitHub
parent cfac906f92
commit 64b63f33f1
2 changed files with 7 additions and 6 deletions
+5 -1
View File
@@ -1,6 +1,9 @@
package types
import "github.com/cosmos/cosmos-sdk/codec"
import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/ethermint/crypto"
)
var ModuleCdc = codec.New()
@@ -16,4 +19,5 @@ func init() {
// RegisterCodec registers concrete types and interfaces on the given codec.
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(&EthereumTxMsg{}, "ethermint/MsgEthereumTx", nil)
crypto.RegisterCodec(cdc)
}