-
Notifications
You must be signed in to change notification settings - Fork 588
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: ics29: switch source with destintion for chan/port IDs #961
Merged
seantking
merged 12 commits into
ics29-fee-middleware
from
sean/issue#757-switch-dest-source-ids
Feb 25, 2022
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
be8d931
fix: switch source with destintion for chan/port IDs
seantking 1884d32
Merge branch 'ics29-fee-middleware' into sean/issue#757-switch-dest-s…
seantking 86bda95
fix: blunder
seantking 2d867e0
Merge branch 'ics29-fee-middleware' into sean/issue#757-switch-dest-s…
seantking 113c892
Merge branch 'ics29-fee-middleware' into sean/issue#757-switch-dest-s…
seantking 53decd4
test: adding tests in case of incorrect channel/port id
seantking f67f139
test: moving check to WriteAcknowledgement
seantking 36d0b6b
Merge branch 'ics29-fee-middleware' into sean/issue#757-switch-dest-s…
seantking 40ccecd
add test case for Get/Set counterparty address
seantking 5bdcd17
nit: path name
seantking 599c574
Update modules/apps/29-fee/keeper/msg_server_test.go
seantking a3d4ed3
Merge branch 'ics29-fee-middleware' into sean/issue#757-switch-dest-s…
seantking File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a test for this so we can catch the issue if it occurs again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've written some tests that will fail if we use the incorrect port/channel ID in either place now. One of the tests is failing when comparing the ack though. Suggestions welcome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
failing here -> https://github.com/cosmos/ibc-go/pull/961/files#diff-79b2cea153b51838e9cb02a38178bc5bc0eb313f75d74f8988774ad0d492e957R541
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I have instead moved the check for WriteAcknowledgement to the tests in
relay_test.go
instead as it was easier and made more sense. We have full coverage now so if either of these lines are accidentally set toSourceChannel
instead ofDestinationChannel
the tests will fail.