Fix core error forwarding, unify OOG VM err

This commit is contained in:
Gustav Simonsson
2015-07-03 19:54:14 +02:00
parent 9c3db1be1d
commit 0f04af5916
7 changed files with 10 additions and 54 deletions

View File

@ -53,7 +53,7 @@ func (self *Execution) exec(contextAddr *common.Address, code []byte, caller vm.
if env.Depth() > int(params.CallCreateDepth.Int64()) {
caller.ReturnGas(self.Gas, self.price)
return nil, vm.DepthError{}
return nil, vm.DepthError
}
vsnapshot := env.State().Copy()