-
Notifications
You must be signed in to change notification settings - Fork 11
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
chore: return nil for invalid amount of aex9 holders #1409
Conversation
d106456
to
751f30b
Compare
@@ -142,7 +147,7 @@ defmodule AeMdwWeb.AexnView do | |||
extensions: extensions, | |||
initial_supply: initial_supply, | |||
event_supply: event_supply, | |||
holders: Stats.fetch_aex9_holders_count(state, contract_pk) | |||
holders: num_holders |
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.
perhaps we can use nil
instead, since it would be a bit confusing for it to be either a string or a number
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.
The purpose is to catch user's attention as much as possible. But we can start with nil
documenting it. If it continues to pop up like the balance before I change for NA
.
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.
Actually another thing that would have being useful for a while, is to tag contracts as compliant or not. Opened here: #1410
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.
Agreed, that would be very useful
What/Why
Negative number is confusing for users: #1260 (comment)
Returns nil (for non-applicable) instead.
refs #1257