diff --git a/core/vm/evm.go b/core/vm/evm.go index ccf9ce4d4e362..ef9db87dd7826 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -206,7 +206,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas ok := evm.Accesses.TouchFullAccount(addr.Bytes(), false, gc.consumeGas) if !ok { evm.StateDB.RevertToSnapshot(snapshot) - return nil, 0, ErrOutOfGas + return nil, gc.availableGas, ErrOutOfGas } gas = gc.availableGas }