Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix transparent balance query #1751

Merged
merged 8 commits into from
Jul 26, 2023
Merged

fix transparent balance query #1751

merged 8 commits into from
Jul 26, 2023

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Jul 24, 2023

Describe your changes

Fixes:

  • token VP types from genesis missing in wallet for both a validator and non-validator nodes (95005c6)
  • client using a storage prefix for a query in which a full storage key is known (c9a4ebb)

These 2 issues together affected the transparent balance query when an owner address is specified but no explicit token is given.

Added an e2e test to cover this query.

Indicate on which release or other PRs this topic is based on

v0.20.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@tzemanovic tzemanovic marked this pull request as ready for review July 24, 2023 15:39
@tzemanovic tzemanovic requested a review from yito88 July 24, 2023 15:39
Fraccaman added a commit that referenced this pull request Jul 26, 2023
* origin/tomas/fix-balance-query:
  changelog: add #1751
  apps/client/rpc: fix transparent balance query without explicit token
  test/e2e/tx_and_queries: add check for balance without explicit token
  apps/client/utils/init_network: remove redundant add address call
  apps/wallet: fix add genesis addresses to add token VP types
  apps/client/rpc: replace lookup alias with method from wallet
  shared/wallet: add fns to lookup aliases and tokens
  apps/cli/context: rm unused functions
@Fraccaman Fraccaman mentioned this pull request Jul 26, 2023
@Fraccaman Fraccaman merged commit 73e820e into main Jul 26, 2023
12 checks passed
@Fraccaman Fraccaman deleted the tomas/fix-balance-query branch July 26, 2023 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants