Skip to content

Commit

Permalink
fix nil paths issue (cosmos#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Feb 15, 2021
1 parent 067f477 commit c35ae52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,11 @@ func (c *Config) ValidatePathEnd(pe *relayer.PathEnd) error {
if err != nil {
return err
}
// NOTE: this is just to do validation, the path
// is not written to the config file
if err = chain.SetPath(pe); err != nil {
return err
}

height, err := chain.QueryLatestHeight()
if err != nil {
Expand Down

0 comments on commit c35ae52

Please sign in to comment.