Skip to content

fix(tx-history): fix unhandled IBC and HTLC events#2385

Merged
shamardy merged 4 commits intodevfrom
unhandled-tx-error-coverage
Mar 20, 2025
Merged

fix(tx-history): fix unhandled IBC and HTLC events#2385
shamardy merged 4 commits intodevfrom
unhandled-tx-error-coverage

Conversation

@onur-ozkan
Copy link
Copy Markdown

@onur-ozkan onur-ozkan commented Mar 11, 2025

Fixes #2347

Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan onur-ozkan changed the title test(tx-history): add error coverage for unrecognized tendermint events fix(tx-history): fix unhandled IBC and HTLC events Mar 11, 2025
Signed-off-by: onur-ozkan <work@onurozkan.dev>
if i >= tx_events.len() {
continue;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this condition can never be true...or is my assumption wrong? cc. @onur-ozkan

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It can be true when tx_events.remove is called. I will add explanatory comment on this.

Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan
Copy link
Copy Markdown
Author

cc @KomodoPlatform/qa for testing.

@shamardy shamardy requested review from borngraced and shamardy March 17, 2025 11:23
@smk762 smk762 self-requested a review March 19, 2025 11:44
Copy link
Copy Markdown

@smk762 smk762 left a comment

Choose a reason for hiding this comment

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

Confirming log error no longer seen. Related transaction appears in IRIS history (but not ATOM-IRIS_IBC). This may be a limitation of tendermint rpc responses? Will open separate issue for this.

@shamardy shamardy merged commit b641d2f into dev Mar 20, 2025
27 of 28 checks passed
@shamardy shamardy deleted the unhandled-tx-error-coverage branch March 20, 2025 16:13
dimxy pushed a commit that referenced this pull request Mar 21, 2025
* dev:
  fix(tx-history): fix unhandled IBC and HTLC events (#2385)
  improvement(dep-stack): replace deprecated `instant` dependency  (#2391)
  feat(tendermint): staking queries (#2377)
  refactor(eth): use trait addr_to_string method instead of old function (#2348)
  fix(ci): use correct rustup component syntax in fmt-and-lint job (#2390)
  refactor(tx-query): use TxSearchRequest for tx queries (#2384)
  refactor(tpu-v2): allow to skip p2p message with taker payment spend preimage for eth (#2359)
  feat(rpc): add is_success field to legacy MySwapStatusResponse (#2371)
  fix(key-derivation): use stored Argon2 parameters instead of default values (#2360)
  fix(tests): stabilize `tendermint_coin::test_claim_staking_rewards` (#2373)
  improvement(RPCs): group staking rpcs under a namespace (#2372)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants