Skip to content

[bug] authz module grants-by-grantee query is broken #23

Description

@clemensgg

Bug description

The grants-by-grantee endpoint of the authz module on Terra is returning an incomplete list of authz grants for a given grantee:

https://terra-rest.publicnode.com/cosmos/authz/v1beta1/grants/grantee/terra1305e92ng6a9pdh3ttc3ld459ckxupxt33gqrc8

This becomes obvious when comparing the above response with a response of a designated granter-grantee pair:

https://terra-rest.publicnode.com/cosmos/authz/v1beta1/grants?granter=terra17gcjmzpz2sfjj9waa6f2e8pr7s70v3hchac2hu&grantee=terra1305e92ng6a9pdh3ttc3ld459ckxupxt33gqrc8

Note that the grant for granter terra17gcjmzpz2sfjj9waa6f2e8pr7s70v3hchac2hu is missing from the grants-by-grantee response for the given grantee terra1305e92ng6a9pdh3ttc3ld459ckxupxt33gqrc8

Unfortunately this breaks restake functionality for some users.

Expected behavior

The grants-by-grantee endpoint should return the complete list of authz grants for the given grantee

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions