Skip to content

fix: Populate tx logs from tx events [DEV-5664]#156

Merged
filipdjokic merged 1 commit into
chains/cheqd/testnetfrom
get-txlogs-from-events
Jan 27, 2026
Merged

fix: Populate tx logs from tx events [DEV-5664]#156
filipdjokic merged 1 commit into
chains/cheqd/testnetfrom
get-txlogs-from-events

Conversation

@filipdjokic
Copy link
Copy Markdown

@filipdjokic filipdjokic commented Jan 27, 2026

Since the bump to the Cosmos SDK v0.50.x, the transactions don't populate logs anymore:

This caused some inconsistencies on our explorer FE, like displaying the amount of withdrawn CHEQ tokens (always 0).

We added a custom function to fetch these from .result.tx_result.events field and populate them into transaction.logs column in our database.

Here's a quick example (logs were manually populated into the testnet DB), which confirms the hypothesis - https://testnet-explorer.cheqd.io/transactions/40A3BBE6E20A10A24F1A0724FFA02869BB363F10BAAEDA78B7376B065FDDEEE0.
You can see that the token amount is properly displayed, unlike in some previous transactions.

@ankurdotb
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@Eengineer1 Eengineer1 left a comment

Choose a reason for hiding this comment

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

Looks good!

Approved 👍.

@filipdjokic filipdjokic merged commit 1b194b7 into chains/cheqd/testnet Jan 27, 2026
12 of 13 checks passed
@filipdjokic filipdjokic deleted the get-txlogs-from-events branch January 27, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants