We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I believe the changes introduced in #2686 may lead to a confusing API to most users. Take for example:
assert.True(t, Coins{{"A", one}, {"B", one}}.IsAllGT(Coins{{"B", one}}))
The coin A is not in the "other" set, but based off of the godoc, it would make you seem to believe this should return false.
A
We should at the very least update the godocs.
/cc @jaekwon @alessio
The text was updated successfully, but these errors were encountered:
IMHO we should remove all comparison ops from the type Coins and encourage the use of AmountOf + Coin's comparison ops.
Coins
AmountOf
Coin
Sorry, something went wrong.
@alessio this is what we do mostly in x/bank I believe. But yes, good point. The API is still confusing though.
x/bank
This code has undergone significant refactor by @alessio since this issue. Going to go ahead and close.
No branches or pull requests
Summary
I believe the changes introduced in #2686 may lead to a confusing API to most users. Take for example:
The coin
A
is not in the "other" set, but based off of the godoc, it would make you seem to believe this should return false.We should at the very least update the godocs.
/cc @jaekwon @alessio
For Admin Use
The text was updated successfully, but these errors were encountered: