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

fix: all_ecocredit_txes to use msg.data->@type instead of msg_event.type #56

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

blushi
Copy link
Member

@blushi blushi commented Nov 7, 2023

closes: #55

The all_ecocredit_txes pg function - that we rely on on the front-end to display the activity table: https://app.regen.network/stats/activity which is msg-based - was using a join on the msg_event table instead of the msg table.
For certain msgs, multiple events can be emitted (eg for MsgBuyDirect: EventBuyDirect, EventRetire and EventTransfer can be emitted). This is why we could see the same row multiple times in the Activity table.

I've deployed to the indexer staging heroku app and db, which is used on https://dev.app.regen.network/stats/activity and now works as expected.

@blushi blushi changed the title fix: all_ecocredit_txes to use msg.data->@type instead of msg_event.type fix: all_ecocredit_txes to use msg.data->@type instead of msg_event.type Nov 7, 2023
@blushi blushi requested a review from a team November 7, 2023 13:43
Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @blushi !

@blushi blushi merged commit 1505243 into main Nov 8, 2023
1 check passed
@blushi blushi deleted the fix-55-all_ecocredit_txes branch November 8, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ecocredit activity page is displaying duplicate events
2 participants