forked from cerc-io/plugeth
invalidated SWAP/DUP
This commit is contained in:
parent
5196f9a340
commit
d03ab3c976
@ -59,9 +59,9 @@ const (
|
|||||||
GASLIMIT = 0x45
|
GASLIMIT = 0x45
|
||||||
|
|
||||||
// 0x50 range - 'storage' and execution
|
// 0x50 range - 'storage' and execution
|
||||||
POP = 0x50
|
POP = 0x50
|
||||||
DUP = 0x51
|
//DUP = 0x51
|
||||||
SWAP = 0x52
|
//SWAP = 0x52
|
||||||
MLOAD = 0x53
|
MLOAD = 0x53
|
||||||
MSTORE = 0x54
|
MSTORE = 0x54
|
||||||
MSTORE8 = 0x55
|
MSTORE8 = 0x55
|
||||||
@ -204,9 +204,9 @@ var opCodeToString = map[OpCode]string{
|
|||||||
GASLIMIT: "GASLIMIT",
|
GASLIMIT: "GASLIMIT",
|
||||||
|
|
||||||
// 0x50 range - 'storage' and execution
|
// 0x50 range - 'storage' and execution
|
||||||
POP: "POP",
|
POP: "POP",
|
||||||
DUP: "DUP",
|
//DUP: "DUP",
|
||||||
SWAP: "SWAP",
|
//SWAP: "SWAP",
|
||||||
MLOAD: "MLOAD",
|
MLOAD: "MLOAD",
|
||||||
MSTORE: "MSTORE",
|
MSTORE: "MSTORE",
|
||||||
MSTORE8: "MSTORE8",
|
MSTORE8: "MSTORE8",
|
||||||
|
@ -640,10 +640,6 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
|
|||||||
x, y := stack.Swapn(n)
|
x, y := stack.Swapn(n)
|
||||||
|
|
||||||
self.Printf(" => [%d] %x [0] %x", n, x.Bytes(), y.Bytes())
|
self.Printf(" => [%d] %x [0] %x", n, x.Bytes(), y.Bytes())
|
||||||
case DUP:
|
|
||||||
// NOP
|
|
||||||
case SWAP:
|
|
||||||
// NOP
|
|
||||||
case MLOAD:
|
case MLOAD:
|
||||||
require(1)
|
require(1)
|
||||||
offset := stack.Pop()
|
offset := stack.Pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user