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

feat: check for ibc timeout if a response was not provided by the chain #1592

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

pedrorezende
Copy link
Collaborator

No description provided.

@pedrorezende pedrorezende force-pushed the namadillo/ibc-fixes-improvements branch from 949f359 to f6fa903 Compare January 31, 2025 15:39
Copy link
Collaborator

@euharrison euharrison left a comment

Choose a reason for hiding this comment

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

Nice!

timeoutHash = timeoutQuery[0]?.hash || "";
}

return [isTimeout, timeoutHash];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm thinking if we should use object on these cases. The array tuple is great for useState because it's a well know function and we rename the returned values. But, on other functions, it's harder to read and understanding the code, also, usually we don't rename the value, actually, we use the same name

const [isTimeout, timeoutHash] = await checkForIbcTransferTimeout(client, tx);

@pedrorezende pedrorezende merged commit 9850a1c into main Feb 3, 2025
7 checks passed
@pedrorezende pedrorezende deleted the namadillo/ibc-fixes-improvements branch February 3, 2025 16:04
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