From f4394078a43f4ccf62959cd8a742815ba4cf0a11 Mon Sep 17 00:00:00 2001 From: Adam Schmideg Date: Fri, 6 Sep 2019 16:41:00 +0200 Subject: [PATCH] Make the return value of `account()` optional Suppose I run `block { account(address: "0x...") { balance, code, address }` with a valid but unknown address. I find it clearer to get back null for the account than some default values for each field. --- EIPS/eip-1767.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EIPS/eip-1767.md b/EIPS/eip-1767.md index c89b6fced5446e..84c83bc114ca6a 100644 --- a/EIPS/eip-1767.md +++ b/EIPS/eip-1767.md @@ -220,7 +220,7 @@ type Block { # Logs returns a filtered set of logs from this block. logs(filter: BlockFilterCriteria!): [Log!]! # Account fetches an Ethereum account at the current block's state. - account(address: Address!): Account! + account(address: Address!): Account # Call executes a local call operation at the current block's state. call(data: CallData!): CallResult # EstimateGas estimates the amount of gas that will be required for @@ -303,7 +303,7 @@ type Pending { # Transactions is a list of transactions in the current pending state. transactions: [Transaction!] # Account fetches an Ethereum account for the pending state. - account(address: Address!): Account! + account(address: Address!): Account # Call executes a local call operation for the pending state. call(data: CallData!): CallResult # EstimateGas estimates the amount of gas that will be required for