diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/execution.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/execution.go b/core/execution.go index a7bb59651..43f4b58fb 100644 --- a/core/execution.go +++ b/core/execution.go @@ -36,7 +36,8 @@ func (self *Execution) exec(code, contextAddr []byte, caller vm.ContextRef) (ret evm := vm.New(env, vm.DebugVmTy) if env.Depth() == vm.MaxCallDepth { - // Consume all gas (by not returning it) and return a depth error + caller.ReturnGas(self.Gas, self.price) + return nil, vm.DepthError{} } |