core/vm: implement REVERT metropolis opcode

This commit is contained in:
Jeffrey Wilcke
2017-08-16 15:32:59 +03:00
committed by Péter Szilágyi
parent 0b978f91b6
commit b70a73cd3e
4 changed files with 21 additions and 1 deletions

View File

@ -204,6 +204,7 @@ const (
DELEGATECALL
STATICCALL = 0xfa
REVERT = 0xfd
SELFDESTRUCT = 0xff
)
@ -360,6 +361,7 @@ var opCodeToString = map[OpCode]string{
CALLCODE: "CALLCODE",
DELEGATECALL: "DELEGATECALL",
STATICCALL: "STATICCALL",
REVERT: "REVERT",
SELFDESTRUCT: "SELFDESTRUCT",
PUSH: "PUSH",
@ -509,6 +511,7 @@ var stringToOp = map[string]OpCode{
"CALL": CALL,
"RETURN": RETURN,
"CALLCODE": CALLCODE,
"REVERT": REVERT,
"SELFDESTRUCT": SELFDESTRUCT,
}