From d1c4da99b9e319389daf31892d290bfd26352471 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 12 May 2022 19:45:01 +0800 Subject: [PATCH] [wip] TxExtensionOptionI for ExtensionOptionsEthereumTx --- app/app.go | 2 ++ x/evm/types/codec.go | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/app/app.go b/app/app.go index 4bb8121b..f6a358f4 100644 --- a/app/app.go +++ b/app/app.go @@ -354,6 +354,8 @@ func NewEthermintApp( ) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) + + evmtypes.RegisterInterfaces(interfaceRegistry) bApp.SetInterfaceRegistry(interfaceRegistry) // configure state listening capabilities using AppOptions diff --git a/x/evm/types/codec.go b/x/evm/types/codec.go index 4452bac4..b44db514 100644 --- a/x/evm/types/codec.go +++ b/x/evm/types/codec.go @@ -6,6 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/cosmos/cosmos-sdk/types/tx" proto "github.com/gogo/protobuf/proto" ) @@ -26,6 +27,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { (*ExtensionOptionsEthereumTxI)(nil), &ExtensionOptionsEthereumTx{}, ) + registry.RegisterImplementations( + (*tx.TxExtensionOptionI)(nil), + &ExtensionOptionsEthereumTx{}, + ) registry.RegisterInterface( "ethermint.evm.v1.TxData", (*TxData)(nil),