diff --git a/app/app.go b/app/app.go index f9191d8444..9b54f3c2dc 100644 --- a/app/app.go +++ b/app/app.go @@ -653,6 +653,8 @@ func (app *EthermintApp) BlockedAddrs() map[string]bool { blockedAddrs[authtypes.NewModuleAddress(acc).String()] = !allowedReceivingModAcc[acc] } + // TODO(dudong2): need to add precompiled contract address? + return blockedAddrs } diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index e76d877dd7..2af71c6015 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -414,7 +414,7 @@ func (k *Keeper) ApplyMessageWithConfig(ctx sdk.Context, // access list preparation is moved from ante handler to here, because it's needed when `ApplyMessage` is called // under contexts where ante handlers are not run, for example `eth_call` and `eth_estimateGas`. if rules := cfg.ChainConfig.Rules(big.NewInt(ctx.BlockHeight()), cfg.ChainConfig.MergeNetsplitBlock != nil); rules.IsBerlin { - stateDB.PrepareAccessList(msg.From(), msg.To(), vm.DefaultActivePrecompiles(rules), msg.AccessList()) + stateDB.PrepareAccessList(msg.From(), msg.To(), evm.ActivePrecompiles(rules), msg.AccessList()) } if contractCreation {