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

Unable to query events emitted from ecocredit v1alpha1 #1356

Closed
4 tasks
ryanchristo opened this issue Aug 16, 2022 · 2 comments · Fixed by #1360
Closed
4 tasks

Unable to query events emitted from ecocredit v1alpha1 #1356

ryanchristo opened this issue Aug 16, 2022 · 2 comments · Fixed by #1360
Assignees
Labels
Scope: x/ecocredit Issues that update the x/ecocredit module Type: Bug Something isn't working

Comments

@ryanchristo
Copy link
Member

ryanchristo commented Aug 16, 2022

Summary of Bug

The v4.0 upgrade migrated ecocredit v1alpha1 to v1. The v1alpha1 events are no longer registered and therefore events prior to the upgrade cannot be queried. For example, when querying regen.ecocredit.v1alpha1.MsgCreateBatch:

unable to resolve type URL /regen.ecocredit.v1alpha1.MsgCreateBatch: tx parse error: invalid request

And querying regen.ecocredit.v1.MsgCreateBatch returns only events after the upgrade (currently no events for this query).

Version

v4.0.0

Steps to Reproduce

regen.ecocredit.v1alpha1.MsgCreateBatch

regen q txs --events message.action='/regen.ecocredit.v1alpha1.MsgCreateBatch'

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@ryanchristo ryanchristo added Type: Bug Something isn't working Scope: x/ecocredit Issues that update the x/ecocredit module labels Aug 16, 2022
@ryanchristo
Copy link
Member Author

Using postgres indexer would be a partial solution but we should be able to query the events without it:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: x/ecocredit Issues that update the x/ecocredit module Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant