diff --git a/core/vm/evm.go b/core/vm/evm.go index c365f637d2..be07fe1d31 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -176,7 +176,7 @@ func NewEVM(blockCtx BlockContext, statedb StateDB, chainConfig *params.ChainCon default: evm.table = &frontierInstructionSet } - var extraEips []int + extraEips := make([]int, 0, len(evm.Config.ExtraEips)) if len(evm.Config.ExtraEips) > 0 { // Deep-copy jumptable to prevent modification of opcodes in other tables evm.table = copyJumpTable(evm.table)