diff --git a/cosmos/runtime/txpool/mempool.go b/cosmos/runtime/txpool/mempool.go index cbe3f3775..b0d6ad3f6 100644 --- a/cosmos/runtime/txpool/mempool.go +++ b/cosmos/runtime/txpool/mempool.go @@ -102,7 +102,8 @@ func (m *Mempool) Insert(ctx context.Context, sdkTx sdk.Tx) error { } if wet, ok := utils.GetAs[*types.WrappedEthereumTransaction](msgs[0]); !ok { - return errors.New("only WrappedEthereumTransactions are supported") + // We have to return nil for non-ethereum transactions as to not fail check-tx. + return nil } else if errs := m.txpool.Add( []*coretypes.Transaction{wet.Unwrap()}, false, false, ); len(errs) != 0 { diff --git a/cosmos/runtime/txpool/mempool_test.go b/cosmos/runtime/txpool/mempool_test.go index 61e1e074f..7c2ea7933 100644 --- a/cosmos/runtime/txpool/mempool_test.go +++ b/cosmos/runtime/txpool/mempool_test.go @@ -81,9 +81,9 @@ var _ = Describe("", func() { }) }) When("we use an that is not an ethereum msg", func() { - It("errors", func() { + It("does not error", func() { sdkTx.On("GetMsgs").Return([]sdk.Msg{nil}).Once() - Expect(mempool.Insert(ctx, sdkTx)).To(HaveOccurred()) + Expect(mempool.Insert(ctx, sdkTx)).ToNot(HaveOccurred()) }) }) })