Skip to content

non consistent form of withdraw reward json key(value) #8581

Closed

Description

Summary of Bug

When we set validator commission to 100%,
the logs in tx-response have been omitted their value

"key":"amount" has no their value key

commission set 100% (omission value) (tx hash = 0427ADA778454592A5D6ED0CDC1BEA0693E859EC9951FE376138A4936DC03238)

{
  "type": "withdraw_rewards",
  "attributes": [
    {
      "key": "amount"
    },
    {
      "key": "validator",
      "value": "cosmosvaloper1x5wgh6vwye60wv3dtshs9dmqggwfx2ldk5cvqu"
    }
  ]
}

when commission set under 100% (tx hash = A5C34733E253F805466956EE315D8FA9F4D6FB859A9A0C5360A0D1A99A9BFC98)

{
  "type": "withdraw_rewards",
  "attributes": [
    {
      "key": "amount",
      "value": "89007507977umuon"
    },
    {
      "key": "validator",
      "value": "cosmosvaloper1tflk30mq5vgqjdly92kkhhq3raev2hnz6eete3"
    }
  ]
}

I thought it should return the consistent form of tx.

Version

stargate-final, cosmos-sdk 0.41.0

Steps to Reproduce


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions