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: only use relative timeout timestamps in ica cli #7961

Merged

Conversation

damiannolan
Copy link
Contributor

Description

This slipped in at some point in the past to attempt to use absolute timeouts in the ica sendTx cli.
This is incorrect as the within the state machine an absolute timeout is calculated by adding the provided value to the current block time.

ref: https://github.com/cosmos/ibc-go/blob/main/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go#L72-L75

cc. @yihuang


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

@damiannolan
Copy link
Contributor Author

damiannolan commented Feb 12, 2025

Needs changelog. Can include in v8.5.4 @gjermundgaraba

edit: actually I think this diff is not in v8.x so only in v9+

Copy link
Contributor

@gjermundgaraba gjermundgaraba left a comment

Choose a reason for hiding this comment

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

Noice! Thanks @damiannolan <3 I added a changelog entry to the PR as well :)

@gjermundgaraba gjermundgaraba added this pull request to the merge queue Feb 12, 2025
@damiannolan
Copy link
Contributor Author

Thank you @gjermundgaraba!

Merged via the queue into cosmos:main with commit 3b3438a Feb 12, 2025
70 of 71 checks passed
@damiannolan damiannolan deleted the fix/only-use-relative-timeouts-ica-cli branch February 12, 2025 15:56
if !absoluteTimeouts {
if timeoutTimestamp == 0 {
return errors.New("relative timeouts must provide a non zero value timestamp")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

should we keep this zero check?

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.

3 participants