Skip to content
Snippets Groups Projects
Unverified Commit 6f779c82 authored by Silas Davis's avatar Silas Davis Committed by GitHub
Browse files

Merge pull request #772 from smblucker/create2-issue769

Adding create2 opcode placeholder
parents caa3a29d 62a65612
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,7 @@ const (
// 0x70 range - other
STATICCALL = 0xfa
CREATE2 = 0xfb
REVERT = 0xfd
INVALID = 0xfe
SELFDESTRUCT = 0xff
......@@ -347,6 +348,7 @@ var opCodeNames = map[OpCode]string{
DELEGATECALL: "DELEGATECALL",
STATICCALL: "STATICCALL",
// 0x70 range - other
CREATE2: "CREATE2",
REVERT: "REVERT",
INVALID: "INVALID",
SELFDESTRUCT: "SELFDESTRUCT",
......
......@@ -1153,7 +1153,7 @@ func (vm *VM) call(caller acm.Account, callee acm.MutableAccount, code, input []
case STOP: // 0x00
return nil, nil
case STATICCALL:
case STATICCALL, CREATE2:
return nil, fmt.Errorf("%s not yet implemented", op.Name())
default:
vm.Debugf("(pc) %-3v Unknown opcode %X\n", pc, op)
......
......@@ -37,7 +37,7 @@ import (
)
const (
timeoutSeconds = 4
timeoutSeconds = 8
expectBlockInSeconds = 2
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment