Cleaned up objects

This commit is contained in:
obscuren
2014-12-19 00:18:52 +01:00
parent a7f4ade711
commit 59ef6e3693
7 changed files with 13 additions and 49 deletions

View File

@ -16,8 +16,10 @@ type Execution struct {
SkipTransfer bool
}
func NewExecution(vm vm.VirtualMachine, address, input []byte, gas, gasPrice, value *big.Int) *Execution {
return &Execution{vm: vm, address: address, input: input, Gas: gas, price: gasPrice, value: value}
func NewExecution(env vm.Environment, address, input []byte, gas, gasPrice, value *big.Int) *Execution {
evm := vm.New(env, vm.DebugVmTy)
return &Execution{vm: evm, address: address, input: input, Gas: gas, price: gasPrice, value: value}
}
func (self *Execution) Addr() []byte {