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

Balance query calls cw20's balance query #73

Open
0xekez opened this issue Sep 21, 2022 · 1 comment
Open

Balance query calls cw20's balance query #73

0xekez opened this issue Sep 21, 2022 · 1 comment

Comments

@0xekez
Copy link
Collaborator

0xekez commented Sep 21, 2022

the balance query calls cw20's query_balance method:

use cw20_base::contract::query_balance;

QueryMsg::Balance { address } => to_binary(&query_balance(deps, address)?),

this doesn't error as that method uses may_load, but it will always return zero. presumably that method should be removed?

@0xekez 0xekez changed the title Balance query doesn't appear to actually do anything Balance query calls cw20's balance query Sep 21, 2022
@pyramation
Copy link

we're also experiencing this. What should we actually be calling to get balance?

cc @aidanaden

CosmosContracts/juno-ts#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants