aboutsummaryrefslogtreecommitdiffstats
path: root/vm/virtual_machine.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-13 20:44:15 +0800
committerobscuren <geffobscura@gmail.com>2015-03-13 20:44:15 +0800
commitf76cc6699ecd995d78cfd980b229473101191137 (patch)
treed91ea0c1725b080062cb6eb2b294e61af02cacc2 /vm/virtual_machine.go
parent80592f244da3f7323b7fa3e75a17c8e37c97fe8d (diff)
downloadgo-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.gz
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.bz2
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.lz
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.xz
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.tar.zst
go-tangerine-f76cc6699ecd995d78cfd980b229473101191137.zip
Changed context and ADDMOD, MULMOD
* Cleaned up VM execution. VM run now takes a context * ADDMOD/MULMOD - removed incorrect cast
Diffstat (limited to 'vm/virtual_machine.go')
-rw-r--r--vm/virtual_machine.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm/virtual_machine.go b/vm/virtual_machine.go
index 23ac4878f..6db284f42 100644
--- a/vm/virtual_machine.go
+++ b/vm/virtual_machine.go
@@ -1,10 +1,8 @@
package vm
-import "math/big"
-
type VirtualMachine interface {
Env() Environment
- Run(me, caller ContextRef, code []byte, value, gas, price *big.Int, data []byte) ([]byte, error)
+ Run(context *Context, data []byte) ([]byte, error)
Printf(string, ...interface{}) VirtualMachine
Endl() VirtualMachine
}