pallad
pallad copied to clipboard
Remove Deprecated Fields from GraphQL Provider Queries
Some of the GraphQL provider queries have deprecated fields. We must remove them and use the proper fields.
For example in AccountInfoProvider
's query:
export const getAccountBalance = `
query accountBalance($publicKey: PublicKey!) {
account(publicKey: $publicKey) {
balance {
total
},
nonce
inferredNonce
delegate
publicKey
}
}
`
The delegate
field is deprecated & should be replaced with delegateAccount
.