aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-23 07:01:26 +0800
committerobscuren <geffobscura@gmail.com>2014-10-23 07:01:26 +0800
commit29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1 (patch)
treecd850fc126869e382ceb56f546aa579b37f7b63d /vm/vm.go
parent51ecab6967a15b82f9285cd0ffd3352607dc8612 (diff)
downloadgo-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.tar
go-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.tar.gz
go-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.tar.bz2
go-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.tar.lz
go-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.tar.xz
go-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.tar.zst
go-tangerine-29b8a0bc5ffa7a674a06a211e1c8bdd1b6ed07b1.zip
Updated the VM & VM tests
* Stack Error shouldn't revert to previous state * Updated VM Test tool * Added Transfer method to VM Env
Diffstat (limited to 'vm/vm.go')
-rw-r--r--vm/vm.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/vm/vm.go b/vm/vm.go
index b5c7c0e21..1a7a40a36 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -660,8 +660,6 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
// Get the arguments from the memory
args := mem.Get(inOffset.Int64(), inSize.Int64())
- //snapshot := self.env.State().Copy()
-
var executeAddr []byte
if op == CALLCODE {
executeAddr = closure.Address()
@@ -673,8 +671,6 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
ret, err := msg.Exec(addr.Bytes(), closure)
if err != nil {
stack.Push(ethutil.BigFalse)
-
- //self.env.State().Set(snapshot)
} else {
stack.Push(ethutil.BigTrue)