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

Add counterpartyChannelId param to IBCModule.OnChanOpenAck #1076

Conversation

catShaark
Copy link
Contributor

@catShaark catShaark commented Mar 4, 2022

Description

ref: #1075

I add counterpartyChannelID as a param to IBCModule.OnChanOpenAck to support ibc module that use counterpartyChannelID in their OnChanOpenAck logic. #1075

closes: #XXXX


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 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.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@catShaark catShaark changed the title Add counterparty channel id to ibc module on chan open ack Add counterpartyChannelId param to IBCModule.OnChanOpenAck Mar 5, 2022
@catShaark catShaark force-pushed the add-CounterpartyChannelID-to-IBCModule-OnChanOpenAck branch from c25e5ee to bec3560 Compare March 5, 2022 16:05
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

This needs a changelog entry under the API breaking section and an addition to the docs/v2-to-v3.md migrations docs, but I can add both in a followup pr if you feel uncertain about adding that

Comment on lines 54 to +55
counterpartyVersion string,
counterpartyChannelID string,
Copy link
Contributor

Choose a reason for hiding this comment

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

could you change the ordering such that counterpartyChannelID comes before counterpartyVersion? See proposed spec changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I'll do it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the contribution!

This needs a changelog entry under the API breaking section and an addition to the docs/v2-to-v3.md migrations docs, but I can add both in a followup pr if you feel uncertain about adding that

I can make the pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#1086 I just made this pr

@codecov-commenter
Copy link

Codecov Report

Merging #1076 (6df89ed) into main (fc452ac) will not change coverage.
The diff coverage is 50.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1076   +/-   ##
=======================================
  Coverage   79.81%   79.81%           
=======================================
  Files         151      151           
  Lines       10882    10882           
=======================================
  Hits         8685     8685           
  Misses       1774     1774           
  Partials      423      423           
Impacted Files Coverage Δ
...les/apps/27-interchain-accounts/host/ibc_module.go 100.00% <ø> (ø)
modules/apps/transfer/ibc_module.go 63.12% <ø> (ø)
modules/core/keeper/msg_server.go 57.90% <0.00%> (ø)
...ps/27-interchain-accounts/controller/ibc_module.go 93.47% <100.00%> (ø)

@colin-axner
Copy link
Contributor

issue closed by #1086

@colin-axner colin-axner closed this Mar 9, 2022
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.

4 participants