diff --git a/farmerbot/cmd/run.go b/farmerbot/cmd/run.go index d44925a64..02b0b0e51 100644 --- a/farmerbot/cmd/run.go +++ b/farmerbot/cmd/run.go @@ -41,7 +41,8 @@ var runCmd = &cobra.Command{ if err != nil { return err } - subConn, err := substrate.NewManager(internal.SubstrateURLs[network]...).Substrate() + manager := substrate.NewManager(internal.SubstrateURLs[network]...) + subConn, err := manager.Substrate() if err != nil { return err }