Skip to content

Commit

Permalink
fix: trusted height handle for recv
Browse files Browse the repository at this point in the history
  • Loading branch information
izyak authored Jul 9, 2024
1 parent fb532e2 commit 8f3fd2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,11 +979,13 @@ func recvPacket(a *appState) *cobra.Command {
skipUpdate = false
if len(args) == 5 {
var err error
trustedHeight, err = strconv.Atoi(args[4])
if err != nil && args[4] == "skip-update" {
if args[4] == "skip-update" {
skipUpdate = true
} else {
return err
trustedHeight, err = strconv.Atoi(args[4])
if err != nil {
return fmt.Errorf("error: %w, arg: %s", err, args[4])
}

Check warning on line 988 in cmd/tx.go

View check run for this annotation

Codecov / codecov/patch

cmd/tx.go#L974-L988

Added lines #L974 - L988 were not covered by tests
}
}

Expand Down

0 comments on commit 8f3fd2a

Please sign in to comment.