aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-12 08:36:36 +0800
committerobscuren <geffobscura@gmail.com>2014-11-12 08:36:36 +0800
commit60cdb1148c404218846fd39331690658168f4e04 (patch)
tree229e68d7dfdaccb12e0b6b9ff19c5c14b9f9c603 /vm
parent9bb1ac7564ff0588f33a1eb43e76f40664d9e527 (diff)
downloadgo-tangerine-60cdb1148c404218846fd39331690658168f4e04.tar.gz
go-tangerine-60cdb1148c404218846fd39331690658168f4e04.tar.zst
go-tangerine-60cdb1148c404218846fd39331690658168f4e04.zip
Transaction execution fixes
Diffstat (limited to 'vm')
-rw-r--r--vm/closure.go4
-rw-r--r--vm/types.go6
2 files changed, 10 insertions, 0 deletions
diff --git a/vm/closure.go b/vm/closure.go
index 8e54e9ce6..ef9bbca93 100644
--- a/vm/closure.go
+++ b/vm/closure.go
@@ -138,3 +138,7 @@ func (c *Closure) Object() *state.StateObject {
func (c *Closure) Caller() ClosureRef {
return c.caller
}
+
+func (self *Closure) SetExecution(exe *Execution) {
+ self.exe = exe
+}
diff --git a/vm/types.go b/vm/types.go
index 7dd167e0c..0b20fb655 100644
--- a/vm/types.go
+++ b/vm/types.go
@@ -309,6 +309,12 @@ var opCodeToString = map[OpCode]string{
SWAP15: "SWAP15",
SWAP16: "SWAP16",
+ LOG0: "LOG0",
+ LOG1: "LOG1",
+ LOG2: "LOG2",
+ LOG3: "LOG3",
+ LOG4: "LOG4",
+
// 0xf0 range
CREATE: "CREATE",
CALL: "CALL",