Skip to content

Commit

Permalink
Fixed EVM environment. Closes #215
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Dec 21, 2014
1 parent 6cff6dd commit 795b143
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/evm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
}

func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *core.Execution {
evm := vm.New(self, vm.DebugVmTy)

return core.NewExecution(evm, addr, data, gas, price, value)
return core.NewExecution(self, addr, data, gas, price, value)
}

func (self *VMEnv) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {
Expand Down

0 comments on commit 795b143

Please sign in to comment.