File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ func NewEVMInterpreter(evm *EVM) *EVMInterpreter {
109
109
case evm .chainRules .IsVerkle :
110
110
// TODO replace with proper instruction set when fork is specified
111
111
table = & verkleInstructionSet
112
+ case evm .chainRules .IsOsaka :
113
+ table = & osakaInstructionSet
112
114
case evm .chainRules .IsPrague :
113
115
table = & pragueInstructionSet
114
116
case evm .chainRules .IsCancun :
Original file line number Diff line number Diff line change 62
62
cancunInstructionSet = newCancunInstructionSet ()
63
63
verkleInstructionSet = newVerkleInstructionSet ()
64
64
pragueInstructionSet = newPragueInstructionSet ()
65
+ osakaInstructionSet = newOsakaInstructionSet ()
65
66
eofInstructionSet = newEOFInstructionSetForTesting ()
66
67
)
67
68
@@ -102,6 +103,12 @@ func newEOFInstructionSetForTesting() JumpTable {
102
103
return validate (instructionSet )
103
104
}
104
105
106
+ func newOsakaInstructionSet () JumpTable {
107
+ instructionSet := newPragueInstructionSet ()
108
+ enable7907 (& instructionSet )
109
+ return validate (instructionSet )
110
+ }
111
+
105
112
func newPragueInstructionSet () JumpTable {
106
113
instructionSet := newCancunInstructionSet ()
107
114
enable7702 (& instructionSet ) // EIP-7702 Setcode transaction type
Original file line number Diff line number Diff line change @@ -296,14 +296,15 @@ var (
296
296
ShanghaiTime : newUint64 (0 ),
297
297
CancunTime : newUint64 (0 ),
298
298
PragueTime : newUint64 (0 ),
299
- OsakaTime : nil ,
299
+ OsakaTime : newUint64 ( 0 ) ,
300
300
VerkleTime : nil ,
301
301
TerminalTotalDifficulty : big .NewInt (0 ),
302
302
Ethash : new (EthashConfig ),
303
303
Clique : nil ,
304
304
BlobScheduleConfig : & BlobScheduleConfig {
305
305
Cancun : DefaultCancunBlobConfig ,
306
306
Prague : DefaultPragueBlobConfig ,
307
+ Osaka : DefaultPragueBlobConfig ,
307
308
},
308
309
}
309
310
You can’t perform that action at this time.
0 commit comments