core/vm: implement REVERT metropolis opcode
This commit is contained in:
committed by
Péter Szilágyi
parent
0b978f91b6
commit
b70a73cd3e
@ -89,6 +89,13 @@ func NewMetropolisInstructionSet() [256]operation {
|
||||
memorySize: memoryReturnDataCopy,
|
||||
valid: true,
|
||||
}
|
||||
instructionSet[REVERT] = operation{
|
||||
execute: opRevert,
|
||||
gasCost: constGasFunc(GasFastestStep),
|
||||
validateStack: makeStackFunc(2, 0),
|
||||
valid: true,
|
||||
reverts: true,
|
||||
}
|
||||
return instructionSet
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user