aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/opcodes.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2017-08-15 16:23:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-15 18:03:49 +0800
commit3d123bcde67973b57c0a9e7edc219cc2ea589443 (patch)
treee806ab2faae07184fdcdfe23488b7111e75a9057 /core/vm/opcodes.go
parent9facf6423dbd38ebd7fbd9069cbcb98b0fd243c2 (diff)
downloadgo-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar
go-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.gz
go-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.bz2
go-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.lz
go-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.xz
go-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.tar.zst
go-tangerine-3d123bcde67973b57c0a9e7edc219cc2ea589443.zip
core/vm: implement metropolis static call opcode
Diffstat (limited to 'core/vm/opcodes.go')
-rw-r--r--core/vm/opcodes.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/vm/opcodes.go b/core/vm/opcodes.go
index d4ba7f156..51925e8dd 100644
--- a/core/vm/opcodes.go
+++ b/core/vm/opcodes.go
@@ -201,6 +201,7 @@ const (
CALLCODE
RETURN
DELEGATECALL
+ STATICCALL = 0xfa
SELFDESTRUCT = 0xff
)
@@ -355,6 +356,7 @@ var opCodeToString = map[OpCode]string{
RETURN: "RETURN",
CALLCODE: "CALLCODE",
DELEGATECALL: "DELEGATECALL",
+ STATICCALL: "STATICCALL",
SELFDESTRUCT: "SELFDESTRUCT",
PUSH: "PUSH",
@@ -405,6 +407,7 @@ var stringToOp = map[string]OpCode{
"CALLDATASIZE": CALLDATASIZE,
"CALLDATACOPY": CALLDATACOPY,
"DELEGATECALL": DELEGATECALL,
+ "STATICCALL": STATICCALL,
"CODESIZE": CODESIZE,
"CODECOPY": CODECOPY,
"GASPRICE": GASPRICE,