Skip to content

Commit

Permalink
pr comment dmn addr
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Dec 10, 2024
1 parent 4e96499 commit 07ec395
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions finality-provider/cmd/fpd/daemon/daemon_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ func runCommandCreateFP(ctx client.Context, cmd *cobra.Command, _ []string) erro
}
}

// read flag regardless
daemonAddress, err := flags.GetString(fpdDaemonAddressFlag)
if err != nil {
return fmt.Errorf("failed to read flag %s: %w", fpdDaemonAddressFlag, err)
}

if daemonAddress != "" {
fp.daemonAddress = daemonAddress
}

client, cleanUp, err := dc.NewFinalityProviderServiceGRpcClient(fp.daemonAddress)
if err != nil {
return err
Expand Down

0 comments on commit 07ec395

Please sign in to comment.