Null response from DistQuery::Rewards
when there are no rewards
#754
Labels
DistQuery::Rewards
when there are no rewards
#754
When a secret contract attempts to do the Rewards query from the Distribution module like follows (where delegator is the HumanAddr whose rewards you want to view):
If the delegator does not have any pending rewards, the query returns a null response which causes a parse error. Instead it should always return a valid
RewardsResponse
, but when there are no rewards, therewards
andtotal
fields should be empty Vecs.The text was updated successfully, but these errors were encountered: