Skip to content

Commit 795b143

Browse files
committed
Fixed EVM environment. Closes #215
1 parent 6cff6dd commit 795b143

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/evm/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
141141
}
142142

143143
func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *core.Execution {
144-
evm := vm.New(self, vm.DebugVmTy)
145-
146-
return core.NewExecution(evm, addr, data, gas, price, value)
144+
return core.NewExecution(self, addr, data, gas, price, value)
147145
}
148146

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

0 commit comments

Comments
 (0)