b821a85a64
* Rename Ethereum tx message * Use new tx decoder in the ethermint app * Update ante handler to prevent spam/dos * Update ethereum msg signing/verification logic * Implement secp256k1 key types * Remove pointer from To method * Move sig check to after inartistic gas check * Add comment on chainID parsing * Updated validateIntrinsicGas godoc * Implement Fee method on eth tx msg * Add reference to spec for recoverEthSig * Upgrade TM to v0.27.0
20 lines
372 B
Go
20 lines
372 B
Go
package types
|
|
|
|
import "github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
var msgCodec = codec.New()
|
|
|
|
func init() {
|
|
cdc := codec.New()
|
|
|
|
RegisterCodec(cdc)
|
|
codec.RegisterCrypto(cdc)
|
|
|
|
msgCodec = cdc.Seal()
|
|
}
|
|
|
|
// Register concrete types and interfaces on the given codec.
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
cdc.RegisterConcrete(&EthereumTxMsg{}, "ethermint/MsgEthereumTx", nil)
|
|
}
|