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 query_tx_events #7

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Fix query_tx_events #7

merged 2 commits into from
Oct 11, 2023

Conversation

yito88
Copy link
Member

@yito88 yito88 commented Oct 10, 2023

Hermes misunderstood a Namada IBC transaction failed though it actually succeeded.
The issue could happen when another transaction fails in the same block where the IBC transaction is applied.

The cause is that query_tx_events caught unrelated failure transaction events.
By this fix, query_tx_events checks the "code" of the transaction to know whether or not it has been applied.
Only when the transaction has been applied successfully, IBC events are collected.

@yito88 yito88 requested a review from sug0 October 10, 2023 21:30
Copy link

@sug0 sug0 left a comment

Choose a reason for hiding this comment

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

lgtm!

@yito88
Copy link
Member Author

yito88 commented Oct 11, 2023

I've tested this with e2e/namada-e2e-test with Namada v0.23.0.
(I have to fix CI...

@yito88 yito88 merged commit f3a5b3a into 1.6.0-namada Oct 11, 2023
3 of 37 checks passed
@yito88 yito88 deleted the yuji/fix-query-tx-events branch October 11, 2023 08:26
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.

2 participants