-
Notifications
You must be signed in to change notification settings - Fork 210
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
bug-fix: include currency-greater-than param for 0 value #807
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine, but I don't think it completely closes #414 -- it still uses the '0'
string workaround, and I wonder if we can just change the behavior of removeFalsyOrEmpty
instead:
https://github.com/algorand/js-algorand-sdk/blob/develop/src/client/client.ts#L26
I'm not sure if this would affect the messagepack serialization behavior though.
I don't see a way to change removeFalsyOrEmpty so it allows @algorand/lamprey what do others think about this? should we use a string work around or add a special handling in |
I also don't see a very easy way to fix #414 without affecting serialization and breaking all our current tests. It seems potentially ugly, but I'd actually be in favor of what you suggested (having special cases). I think it's more obvious and self-documenting that this is a weird workaround in the JS SDK. As is, I don't think it's obvious to devs why we need to pass |
It is possible we could stop running queries through the |
If I remove this function, then the path seem to include
|
That's very strange, I have no idea where it's getting |
I think I would want to know what falsy values or values with length zero we are removing from queries, and whether it can be removed or replaced with alternate logic. my hunch is the |
This is to be addressed in #414 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @bbroder-algo that we need to change or remove that comment on the client method -- Otherwise LGTM, and I don't have a strong opinion on whether we need to address that falsy problem in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving - optional nit regarding adding comments for converting params to string
This PR fixes #810