Skip to content

Commit

Permalink
add back in close uch.closeChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
RnkSngh committed Apr 24, 2024
1 parent b7d3705 commit fb75529
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/core/UniversalChannelHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ contract UniversalChannelHandler is IbcReceiverBaseUpgradeable, UUPSUpgradeable,
__IbcReceiverBase_init(_dispatcher);
}

/**
* @dev Close a universal channel.
* Cannot send or receive packets after the channel is closed.
* @param channelId The channel id of the channel to be closed.
*/
function closeChannel(bytes32 channelId) external onlyOwner {
dispatcher.channelCloseInit(channelId);
}

function onChanCloseInit(bytes32 channelId, string calldata, bytes32) external onlyIbcDispatcher {}

function onChanCloseConfirm(bytes32 channelId, string calldata, bytes32) external onlyIbcDispatcher {}
Expand Down

0 comments on commit fb75529

Please sign in to comment.