Skip to content

Commit

Permalink
wrap claim capability errors in handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Oct 4, 2021
1 parent 0389a8b commit 0200526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/apps/27-interchain-accounts/keeper/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (k Keeper) OnChanOpenInit(

// Claim channel capability passed back by IBC module
if err := k.ClaimCapability(ctx, chanCap, host.ChannelCapabilityPath(portID, channelID)); err != nil {
return sdkerrors.Wrap(channeltypes.ErrChannelCapabilityNotFound, err.Error())
return sdkerrors.Wrap(err, "failed to claim capability")
}

return nil
Expand Down Expand Up @@ -84,7 +84,7 @@ func (k Keeper) OnChanOpenTry(
// On the host chain the capability may only be claimed during the OnChanOpenTry
// The capability being claimed in OpenInit is for a controller chain (the port is different)
if err := k.ClaimCapability(ctx, chanCap, host.ChannelCapabilityPath(portID, channelID)); err != nil {
return err
return sdkerrors.Wrap(err, "failed to claim capability")
}

// Check to ensure that the version string contains the expected address generated from the Counterparty portID
Expand Down

0 comments on commit 0200526

Please sign in to comment.