Skip to content

Commit

Permalink
change testing mock
Browse files Browse the repository at this point in the history
  • Loading branch information
catShaark committed Mar 4, 2022
1 parent f08fc74 commit bec3560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions testing/mock/ibc_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type MockIBCApp struct {
portID,
channelID string,
counterpartyVersion string,
counterpartyChannelID string,
) error

OnChanOpenConfirm func(
Expand Down
4 changes: 2 additions & 2 deletions testing/mock/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func (im IBCModule) OnChanOpenTry(
}

// OnChanOpenAck implements the IBCModule interface.
func (im IBCModule) OnChanOpenAck(ctx sdk.Context, portID string, channelID string, counterpartyVersion string) error {
func (im IBCModule) OnChanOpenAck(ctx sdk.Context, portID string, channelID string, counterpartyVersion string, counterpartyChannelID string) error {
if im.IBCApp.OnChanOpenAck != nil {
return im.IBCApp.OnChanOpenAck(ctx, portID, channelID, counterpartyVersion)
return im.IBCApp.OnChanOpenAck(ctx, portID, channelID, counterpartyVersion, counterpartyChannelID)
}

return nil
Expand Down

0 comments on commit bec3560

Please sign in to comment.