-
Notifications
You must be signed in to change notification settings - Fork 642
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
ICA: OnChanCloseInit should return error #416
Comments
Users are blocked from closing channels, see: https://github.com/cosmos/ibc-go/blob/interchain-accounts/modules/apps/27-interchain-accounts/module.go#L184 I left some commented-out code in |
Returning nil allows users to close channels A user sends |
The close confirm is also incorrect, if the counterparty closes the channel, we should probably allow the channel to be closed |
Gotcha. Good catch. 👍 Updating this as part of a PR here - > #420 |
…osmos#416) * use light client not chain to get trusted headers * refactor light client handling Remove SyncHeaders entirely. Reduce light client API. We can update off chain light clients. Then we can get creation or update headers to handle on chain light clients. No other functions necessary * continue fixing cmd and self review suggestions * fix build * update error message and add todo * fix lgtm * use uint64 in latest height return * fix lint * more self review fixes * apply @AdityaSripal review suggestions * fix lint * add - 1 notes cc @fedekunze * add more -1 notes * fix golang ci
Summary
The current code allows users to close channels. The interchain accounts callback should return an error
For Admin Use
The text was updated successfully, but these errors were encountered: