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

Allow MsgWithdrawEmission as an Authz Grant. #3116

Open
CharlieMc0 opened this issue Nov 6, 2024 · 1 comment · May be fixed by #3117
Open

Allow MsgWithdrawEmission as an Authz Grant. #3116

CharlieMc0 opened this issue Nov 6, 2024 · 1 comment · May be fixed by #3117
Assignees
Labels
bug Something isn't working

Comments

@CharlieMc0
Copy link
Member

Describe the Bug
When trying setup a Authz grant for the emissions.MsgWithdrawEmission message type it fails with this error.

Error: no concrete type registered for type URL /zetachain.zetacore.emissions.MsgWithdrawEmission against interface *authz.Authorization

To Reproduce
Try to use the /cosmos.authz.v1beta1.MsgGrant to allow another address to submit the MsgWithdrawEmission on behalf of a OS node.


{ 
  "messages": [
        {
          "@type": "/cosmos.authz.v1beta1.MsgGrant",
          "granter": "zeta1c9876",
          "grantee": "zeta1c1234...",
          "grant": {
            "authorization": {
              "@type": "/zetachain.zetacore.emissions.MsgWithdrawEmission"
            },
            "expiration": null
          }
        }
      ]
    }
  ],
}

Expected Behavior
This should work correctly without any errors.

@CharlieMc0 CharlieMc0 added the bug Something isn't working label Nov 6, 2024
@lumtis
Copy link
Member

lumtis commented Nov 6, 2024

Need to be added in codec.go, should solve the issue. We should also add MsgUpdateParams

@kingpinXD kingpinXD linked a pull request Nov 6, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants