Skip to content

Commit

Permalink
adding strings.Trimspace
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Jan 13, 2022
1 parent 2214791 commit 8d34265
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (k Keeper) OnChanOpenAck(
return err
}

if metadata.Address == "" {
if strings.TrimSpace(metadata.Address) == "" {
return sdkerrors.Wrap(icatypes.ErrInvalidAccountAddress, "interchain account address cannot be empty")
}

Expand Down

0 comments on commit 8d34265

Please sign in to comment.