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

Remove/Rename ibctesting.FirstChannelID #6765

Open
bznein opened this issue Jul 4, 2024 · 3 comments
Open

Remove/Rename ibctesting.FirstChannelID #6765

bznein opened this issue Jul 4, 2024 · 3 comments

Comments

@bznein
Copy link
Contributor

bznein commented Jul 4, 2024

ibctesting.FirstChannelID used to be a valid constant to represent channels used in testing. However, after #6748, this is not true anymore.

We should revisit all occurrences of this constant and either:

  • Replace them with the appropriate channel
  • Replace them with a properly named constant (most time they can either represent invalid channels or placeholders)
@srdtrk
Copy link
Member

srdtrk commented Jul 8, 2024

Please do not remove this constant from the ibctesting package as I'm using it in external crates. Maybe the issue should be renamed to Remove/Revisit the usage of ibctesting.FirstChannelID since the constant is appropriately named?

@chatton
Copy link
Contributor

chatton commented Jul 11, 2024

Yeah I think keeping the constant in place is doing no harm to not mess with external dependencies on it. As long as our tests are updated to not rely on it, I think it's fine to keep.

@DimitrisJim
Copy link
Contributor

DimitrisJim commented Jul 11, 2024

yup, I think just a better name can be introduced, MockChannelID, InvalidChannelID etc, defo no need to rm esp if one of our team is even using it!

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

No branches or pull requests

4 participants