From c163cdbfbe8a58eb70e75109c8e3536bec0a55ce Mon Sep 17 00:00:00 2001 From: Vitomir Pavlov Date: Mon, 25 Nov 2024 17:25:09 +0200 Subject: [PATCH] update --- command/sidechain/commission/commission.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/sidechain/commission/commission.go b/command/sidechain/commission/commission.go index 471e9565..dea45edd 100644 --- a/command/sidechain/commission/commission.go +++ b/command/sidechain/commission/commission.go @@ -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)