Skip to content

Commit

Permalink
update to use ErrInvalidVersion in favour of ErrInvalidAccountAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Oct 12, 2021
1 parent 7a11401 commit de7e3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apps/27-interchain-accounts/keeper/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (k Keeper) OnChanOpenTry(
}

if parsedAddr != accAddr.String() {
return sdkerrors.Wrapf(types.ErrInvalidAccountAddress, "version contains invalid account address: expected %s, got %s", parsedAddr, accAddr)
return sdkerrors.Wrapf(types.ErrInvalidVersion, "version contains invalid account address: expected %s, got %s", parsedAddr, accAddr)
}

// Register interchain account if it does not already exist
Expand Down

0 comments on commit de7e3ec

Please sign in to comment.