-
Notifications
You must be signed in to change notification settings - Fork 209
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
Remove function removeFalsyOrEmpty #414
Comments
@chaihoang Do you have updates on this? |
This is definitely a bug that we'd like to fix, but in the meantime community members have noticed that a workaround is to pass 0 as a string, i.e. |
Are there any end-points in the API where it makes sense to filter out a query parameter that has been set to If not, can we just exclude that in |
I hit this too - the If you think excluding other falsy values is going to be problematic then at least make an exception for Number(0) in that check? "Holders that have at least one micro-unit" is a fairly common use case that everyone trips over currently. |
It may be possible to remove
|
Subject of the issue
I'm trying to lookup holders of a given asset where they hold >0 tokens.
When I call
client.lookupAssetBalances(asset_id).currencyGreaterThan(0).do()
the resultant request has nocurrency-greater-than
GET parameter, but setting it to 1 does produce the correct request URL.I believe this is due to the step where it removes things that look falsy:
js-algorand-sdk/src/client/client.ts
Lines 53 to 61 in 9afe012
I'm not sure what the correct fix is and I've got a temporary work around.
The text was updated successfully, but these errors were encountered: