diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-01 08:18:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-01 08:18:03 +0800 |
commit | 141d3caabbfbebbbecac455462a40b6056aa3821 (patch) | |
tree | 367b81236d56c9ec21d9d2e0e8b29e261a668f11 /vm/vm.go | |
parent | 5af4ff985dc43b648bdc96394a3bd96d9658ae0a (diff) | |
download | dexon-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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |