I have deployed a version of the open-zeppelin-subgraph
(https://github.com/OpenZeppelin/openzeppelin-subgraphs) and I am tracking ERC20
, ERC721
and ERC1155
tokens.
I am using this query:
{
account(id: "${walletAddress}") {
ERC20balances {
id
value
}
ERC721tokens {
id
identifier
}
ERC1155balances {
token {
id
identifier
}
valueExact
}
}
}
The problem I have is that instead of getting empty arrays for wallets that does not have a balance of the tokens I am tracking, I am getting this:
{
"data": {
"account": null
}
}
Why is this happening only for some addresses? I think this is the format I should get no matter what addresses I use:
{
"data": {
"account": {
"ERC20balances": [],
"ERC721tokens": [],
"ERC1155balances": []
}
}
}