Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Aug 7, 2024
1 parent 28a906c commit 07bc762
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions finality-provider/cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"context"
"os"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -30,6 +31,10 @@ func PersistClientCtx(ctx client.Context) func(cmd *cobra.Command, _ []string) e
WithLegacyAmino(tempApp.LegacyAmino()).
WithInput(os.Stdin)

// ensure cmd context is not nil. Later it will be replaced
// by SetCmdClientContextHandler
cmd.SetContext(context.Background())

// set the default command outputs
cmd.SetOut(cmd.OutOrStdout())
cmd.SetErr(cmd.ErrOrStderr())
Expand Down

0 comments on commit 07bc762

Please sign in to comment.