Merge pull request 'fix: WalletCard.vue GraphQL variables (#191)' (#202) from fix/issue-191 into master
This commit is contained in:
commit
f1893d50a0
1 changed files with 3 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ async function fetchWalletData(addr: string) {
|
|||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
query: `{
|
||||
holders(address: "${addr.toLowerCase()}") {
|
||||
query: `query WalletData($address: String!) {
|
||||
holders(address: $address) {
|
||||
balance
|
||||
totalEthSpent
|
||||
totalTokensAcquired
|
||||
|
|
@ -31,6 +31,7 @@ async function fetchWalletData(addr: string) {
|
|||
items { currentPriceWei }
|
||||
}
|
||||
}`,
|
||||
variables: { address: addr.toLowerCase() },
|
||||
}),
|
||||
});
|
||||
const json = await res.json();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue