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

namada_sdk::rpc::get_token_balance() returns 0 due to empty response at epoch boundary #2154

Closed
bengtlofgren opened this issue Nov 11, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bengtlofgren
Copy link
Contributor

bengtlofgren commented Nov 11, 2023

The relevant lines are in https://github.com/anoma/namada/blob/main/sdk/src/queries/vp/token.rs#L37

Interestingly enough, this function only gets called from the CLI when you run
namadac balance --owner <owner> but otherwise is not used.

Surprisingly, the cli implementation somehow works around this issue by waiting until the epoch boundary has passed and then returning the correct balances.

@bengtlofgren bengtlofgren added the bug Something isn't working label Nov 11, 2023
@tzemanovic
Copy link
Member

not able to replicate but will re-open if it appears again

@tzemanovic tzemanovic closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants