forked from cerc-io/laconicd-deprecated
fix: nil pointer panic in ApplyNativeMessage
(#660)
* Problem: nil pointer panic in ApplyNativeMessage Solution: - pass NoOpTracer * use NewTracer * changelog
This commit is contained in:
parent
89e2b29aed
commit
2e067590a2
@ -51,6 +51,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
* (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.
|
||||
* (evm) [tharsis#660](https://github.com/tharsis/ethermint/pull/660) Fix nil pointer panic in ApplyNativeMessage.
|
||||
|
||||
## [v0.7.0] - 2021-10-07
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user