diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-13 20:44:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-13 20:44:15 +0800 |
commit | f76cc6699ecd995d78cfd980b229473101191137 (patch) | |
tree | d91ea0c1725b080062cb6eb2b294e61af02cacc2 /vm/virtual_machine.go | |
parent | 80592f244da3f7323b7fa3e75a17c8e37c97fe8d (diff) | |
download | dexon-f76cc6699ecd995d78cfd980b229473101191137.tar dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.gz dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.bz2 dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.lz dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.xz dexon-f76cc6699ecd995d78cfd980b229473101191137.tar.zst dexon-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.go | 4 |
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 } |