Skip to content

Commit

Permalink
core/vm: Rename RANDOM to PREVRANDAO for enablement in instruction set
Browse files Browse the repository at this point in the history
During the merge from go-ethereum we wrongly handled the instruction to be activated for RANDOM which has been renamed to PREVRANDAO.

This can be found at ethereum/go-ethereum@d30e39b#diff-3722385a96482d2250e1b71e50749b4a104968ca098dbb91331db536a37b3867L83
  • Loading branch information
ziogaschr committed Jun 1, 2023
1 parent 025413c commit f10618e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/jump_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func instructionSetForConfig(config ctypes.ChainConfigurator, isPostMerge bool,
enable3198(instructionSet) // BASEFEE opcode https://eips.ethereum.org/EIPS/eip-3198
}
if isPostMerge {
instructionSet[RANDOM] = &operation{
instructionSet[PREVRANDAO] = &operation{
execute: opRandom,
constantGas: GasQuickStep,
minStack: minStack(0, 1),
Expand Down

0 comments on commit f10618e

Please sign in to comment.