Skip to content

Commit

Permalink
perf: default BerlinPrecompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
devon-chain committed May 6, 2023
1 parent 41ef41d commit 6b0a142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion x/evm/keeper/precompiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b0a142

Please sign in to comment.