-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Solution: add close-channel command, the ibc-go does not allowed the user to close the channel by default because of this, we need to add a path for it and recompile the chain-maind if we want to use this feature. @@ -304,8 +304,9 @@ func (am AppModule) OnChanCloseInit( portID, channelID string, ) error { - // Disallow user-initiated channel closing for transfer channels - return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "user cannot close channel") + // Allow user-initiated channel closing for transfer channels + // return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "user cannot close channel") + return nil }
- Loading branch information
1 parent
49d9d87
commit f1274d0
Showing
13 changed files
with
480 additions
and
122 deletions.
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
5 changes: 5 additions & 0 deletions
5
solo-machine-core/src/ibc/core/ics04_channel/msg_channel_close_init.rs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use cosmos_sdk_proto::ibc::core::channel::v1::MsgChannelCloseInit; | ||
|
||
const TYPE_URL: &str = "/ibc.core.channel.v1.MsgChannelCloseInit"; | ||
|
||
impl_any_conversion!(MsgChannelCloseInit, TYPE_URL); |
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
Oops, something went wrong.