aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-01 08:18:03 +0800
committerobscuren <geffobscura@gmail.com>2014-11-01 08:18:03 +0800
commit141d3caabbfbebbbecac455462a40b6056aa3821 (patch)
tree367b81236d56c9ec21d9d2e0e8b29e261a668f11 /vm/vm.go
parent5af4ff985dc43b648bdc96394a3bd96d9658ae0a (diff)
downloaddexon-141d3caabbfbebbbecac455462a40b6056aa3821.tar.gz
dexon-141d3caabbfbebbbecac455462a40b6056aa3821.tar.zst
dexon-141d3caabbfbebbbecac455462a40b6056aa3821.zip
Re-org op codes
Diffstat (limited to 'vm/vm.go')
-rw-r--r--vm/vm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 28df832d3..e1c2d9c14 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -268,7 +268,7 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
U256(base)
stack.Push(base)
- case BNOT:
+ case NOT:
require(1)
base.Sub(Pow256, stack.Pop())
@@ -325,7 +325,7 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
} else {
stack.Push(ethutil.BigFalse)
}
- case NOT:
+ case ISZERO:
require(1)
x := stack.Pop()
if x.Cmp(ethutil.BigFalse) > 0 {