Skip to content

Commit

Permalink
refactor: delete channel handler file
Browse files Browse the repository at this point in the history
  • Loading branch information
seantking committed Jun 18, 2021
1 parent 8b48994 commit 5ddd31b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 132 deletions.
127 changes: 0 additions & 127 deletions modules/core/04-channel/handler.go

This file was deleted.

4 changes: 0 additions & 4 deletions modules/core/04-channel/keeper/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ func (k Keeper) ChanOpenInit(
sdk.NewAttribute(types.AttributeCounterpartyChannelID, counterparty.ChannelId),
sdk.NewAttribute(types.AttributeKeyConnectionID, connectionHops[0]),
),
sdk.NewEvent(
sdk.EventTypeMessage,
sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
),
})

return channelID, capKey, nil
Expand Down
2 changes: 1 addition & 1 deletion modules/core/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (k Keeper) ChannelOpenTry(goCtx context.Context, msg *channeltypes.MsgChann
portCap, msg.Channel.Counterparty, msg.Channel.Version, msg.CounterpartyVersion, msg.ProofInit, msg.ProofHeight,
)
if err != nil {
return &channeltypes.MsgChannelOpenTryResponse{}, sdkerrors.Wrap(err, "channel handshake open try failed")
return nil, sdkerrors.Wrap(err, "channel handshake open try failed")
}

// Retrieve callbacks from router
Expand Down

0 comments on commit 5ddd31b

Please sign in to comment.