Skip to content

Commit f057504

Browse files
spencer-tbfjl
authored andcommitted
chore(eips): fix 7939.
1 parent 6081896 commit f057504

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

core/vm/eips.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var activators = map[int]func(*JumpTable){
4141
1153: enable1153,
4242
4762: enable4762,
4343
7702: enable7702,
44+
7939: enable7939,
4445
}
4546

4647
// EnableEIP enables the given EIP on the config.

core/vm/interpreter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ func NewEVMInterpreter(evm *EVM) *EVMInterpreter {
106106
// If jump table was not initialised we set the default one.
107107
var table *JumpTable
108108
switch {
109+
case evm.chainRules.IsOsaka:
110+
table = &osakaInstructionSet
109111
case evm.chainRules.IsVerkle:
110112
// TODO replace with proper instruction set when fork is specified
111113
table = &verkleInstructionSet

core/vm/jump_table.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ var (
6262
cancunInstructionSet = newCancunInstructionSet()
6363
verkleInstructionSet = newVerkleInstructionSet()
6464
pragueInstructionSet = newPragueInstructionSet()
65+
osakaInstructionSet = newOsakaInstructionSet()
6566
)
6667

6768
// JumpTable contains the EVM opcodes supported at a given fork.

0 commit comments

Comments
 (0)