diff --git a/CHANGELOG.md b/CHANGELOG.md index abfa49ed46..2acc31f937 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,9 +48,11 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes +* (deps) [tharsis#655](https://github.com/tharsis/ethermint/pull/665) Bump Cosmos SDK version to [`v0.44.2`](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.2). * (evm) [tharsis#650](https://github.com/tharsis/ethermint/pull/650) Fix panic when flattening the cache context in case transaction is reverted. * (rpc, test) [tharsis#608](https://github.com/tharsis/ethermint/pull/608) Fix rpc test. -* (rpc) [tharsis#661](https://github.com/tharsis/ethermint/pull/661) Fix possibility of OOM error on creating too many filters using JSON-RPC. +* (rpc) [tharsis#661](https://github.com/tharsis/ethermint/pull/661) Fix OOM bug when creating too many filters using JSON-RPC. +* (evm) [tharsis#660](https://github.com/tharsis/ethermint/pull/660) Fix `nil` pointer panic in `ApplyNativeMessage`. ## [v0.7.0] - 2021-10-07 diff --git a/go.mod b/go.mod index f7169fd3e6..bad173fb96 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/btcsuite/btcd v0.22.0-beta github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce - github.com/cosmos/cosmos-sdk v0.44.1 + github.com/cosmos/cosmos-sdk v0.44.2 github.com/cosmos/go-bip39 v1.0.0 github.com/cosmos/ibc-go v1.2.1 github.com/ethereum/go-ethereum v1.10.9 diff --git a/go.sum b/go.sum index c09839f468..02f3124521 100644 --- a/go.sum +++ b/go.sum @@ -245,6 +245,8 @@ github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfc github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/cosmos-sdk v0.44.1 h1:UspmTMwKNGf6mH8k388v2T5csP9BYpPJkbQ/eG30PtM= github.com/cosmos/cosmos-sdk v0.44.1/go.mod h1:fwQJdw+aECatpTvQTo1tSfHEsxACdZYU80QCZUPnHr4= +github.com/cosmos/cosmos-sdk v0.44.2 h1:EWoj9h9Q9t7uqS3LyqzZWWwnSEodUJlYDMloDoPBD3Y= +github.com/cosmos/cosmos-sdk v0.44.2/go.mod h1:fwQJdw+aECatpTvQTo1tSfHEsxACdZYU80QCZUPnHr4= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 2b695c6008..137e523af5 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -370,7 +370,8 @@ func (k *Keeper) ApplyNativeMessage(msg core.Message) (*types.MsgEthereumTxRespo baseFee := k.feeMarketKeeper.GetBaseFee(ctx) - evm := k.NewEVM(msg, ethCfg, params, coinbase, baseFee, nil) + tracer := types.NewTracer(k.tracer, msg, ethCfg, ctx.BlockHeight(), k.debug) + evm := k.NewEVM(msg, ethCfg, params, coinbase, baseFee, tracer) ret, err := k.ApplyMessage(evm, msg, ethCfg, true) if err != nil {