mirror of https://github.com/hyperledger/besu
Do not return errors when no account is present, return a zero balance instead (#1951)
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>pull/1985/head
parent
9947692322
commit
eddd35f3a8
@ -1,25 +1,12 @@ |
||||
{ |
||||
"request": "{account(blockNumber:\"0x19\", address: \"0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef\") { balance } }", |
||||
"response": { |
||||
"errors": [ |
||||
{ |
||||
"message": "Exception while fetching data (/account) : Account with address 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef does not exist", |
||||
"locations": [ |
||||
{ |
||||
"line": 1, |
||||
"column": 2 |
||||
} |
||||
], |
||||
"path": [ |
||||
"account" |
||||
], |
||||
"extensions": { |
||||
"classification": "DataFetchingException" |
||||
} |
||||
"data": { |
||||
"account": { |
||||
"balance": "0x" |
||||
} |
||||
], |
||||
"data": null |
||||
} |
||||
}, |
||||
"statusCode": 400 |
||||
"statusCode": 200 |
||||
} |
||||
|
||||
|
@ -1,25 +1,12 @@ |
||||
{ |
||||
"request": "{account(address: \"0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d\") { balance } }", |
||||
"response": { |
||||
"errors": [ |
||||
{ |
||||
"message": "Exception while fetching data (/account) : Account with address 0xdeaff00ddeaff00ddeaff00ddeaff00ddeaff00d does not exist", |
||||
"locations": [ |
||||
{ |
||||
"line": 1, |
||||
"column": 2 |
||||
} |
||||
], |
||||
"path": [ |
||||
"account" |
||||
], |
||||
"extensions": { |
||||
"classification": "DataFetchingException" |
||||
} |
||||
"data" : { |
||||
"account" : { |
||||
"balance" : "0x" |
||||
} |
||||
], |
||||
"data": null |
||||
} |
||||
}, |
||||
"statusCode": 400 |
||||
"statusCode": 200 |
||||
} |
||||
|
||||
|
Loading…
Reference in new issue