Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitomir2 committed Nov 25, 2024
1 parent 78e7311 commit c163cdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command/sidechain/commission/commission.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ func runCommand(cmd *cobra.Command, _ []string) error {
}
}

if params.commission > 0 && !foundPendingCommissionLog { //nolint:gocritic
return fmt.Errorf("could not find an appropriate log in the receipt that validates the new pending commission")
} else if params.apply && !foundCommissionUpdatedLog {
if params.apply && !foundCommissionUpdatedLog { //nolint:gocritic
return fmt.Errorf("could not find an appropriate log in the receipt that validates the new commission update")
} else if params.claim && !foundClaimCommissionLog {
return fmt.Errorf("could not find an appropriate log in the receipt that validates the commission claim")
} else if !foundPendingCommissionLog {
return fmt.Errorf("could not find an appropriate log in the receipt that validates the new pending commission")
}

outputter.WriteCommandResult(result)
Expand Down

0 comments on commit c163cdb

Please sign in to comment.