diff --git a/app/app.go b/app/app.go index b031a0b512..8abbf114f5 100644 --- a/app/app.go +++ b/app/app.go @@ -421,8 +421,7 @@ func NewEthermintApp( appCodec, keys[evmtypes.StoreKey], tkeys[evmtypes.TransientKey], authtypes.NewModuleAddress(govtypes.ModuleName), app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.FeeMarketKeeper, tracer, evmSs, ) - - app.EvmKeeper.WithPrecompiled(evmkeeper.DefaultAvailablePrecompiled()) + app.EvmKeeper.WithPrecompiled(evmkeeper.BerlinPrecompiled()) // Create IBC Keeper app.IBCKeeper = ibckeeper.NewKeeper( diff --git a/x/evm/keeper/precompiles.go b/x/evm/keeper/precompiles.go index 8f5e8cb988..4214db1114 100644 --- a/x/evm/keeper/precompiles.go +++ b/x/evm/keeper/precompiles.go @@ -42,7 +42,7 @@ func (k *Keeper) WithPrecompiled(precompiledFunc map[common.Address]PrecompiledC return k } -func DefaultAvailablePrecompiled() map[common.Address]PrecompiledContractFunc { +func BerlinPrecompiled() map[common.Address]PrecompiledContractFunc { precompiledFunc := make(map[common.Address]PrecompiledContractFunc, len(vm.PrecompiledContractsBerlin)) for addr, precompiled := range vm.PrecompiledContractsBerlin { // wrap the precompiled contract to a function