Skip to content
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

[p2][LCD]Encounter incorrect return while trying to set an empty address for "/distribution/{address}/rewards" #1495

Closed
shilei-wang opened this issue May 29, 2019 · 1 comment
Assignees
Labels
API bug Something isn't working

Comments

@shilei-wang
Copy link
Contributor

shilei-wang commented May 29, 2019

Describe the bug
It seems the system fail to handle the condition in which the address input is empty.

Since the iriscli and swagger will both intercept empty address input, this bug has never been discovered.

To Reproduce
http://localhost:1317/distribution/""/rewards

The system fails to analysis (“”),and then returns the confused output:


{
  "total": [
    {
      "denom": "iris-atto",
      "amount": "1114165332000000000"
    }
  ],
  "delegations": [
    {
      "validator": "fva19q9utf40ecgsumacxtne7rhs5kl32v6nzk88ke",
      "reward": [
        {
          "denom": "iris-atto",
          "amount": "531869301000000000"
        }
      ]
    },
    {
      "validator": "fva1lwfd8p7nywdxm4xyn8dafe8uhu7w39ap0v4csz",
      "reward": [
        {
          "denom": "iris-atto",
          "amount": "582296031000000000"
        }
      ]
    }
  ],
  "commission": null
}
@shilei-wang
Copy link
Contributor Author

confirmed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants