diff --git a/src/nosana_node/cli.clj b/src/nosana_node/cli.clj index 6148309..6cdb971 100644 --- a/src/nosana_node/cli.clj +++ b/src/nosana_node/cli.clj @@ -193,7 +193,8 @@ ;; parse the inner options passed to this action :else (let [{a-summary :summary a-errors :errors a-args :arguments a-options :options} - (cli/parse-opts (rest arguments) (get-in cli-options [action :options]))] + (cli/parse-opts (rest arguments) + (get-in cli-options [action :options]))] (cond (:help a-options) {:exit-message (usage action a-summary) :ok? true} @@ -211,10 +212,11 @@ :else (do - - ;; merge CLI over existing config (cond-> (-> sys (assoc :nos/action action) - (update :nos/vault merge state))))))) + (update :nos/vault merge state)) + ;; hard override the network to devnet for test grid registration + (= action "join-test-grid") + (assoc-in [:nos/vault :solana-network] :devnet)))))) diff --git a/src/nosana_node/nosana.clj b/src/nosana_node/nosana.clj index 52a737a..ace5df3 100644 --- a/src/nosana_node/nosana.clj +++ b/src/nosana_node/nosana.clj @@ -818,8 +818,8 @@ ;; if there is still not enough balance request use to deposit funds (let [new-balance (-> (sol/get-balance (.getPublicKey account) network))] (if (< new-balance min-sol-balance) - (throw (ex-info (str "Insufficient SOL to operate," - "deposit 0.1 SOL on the node address:\n" address) + (throw (ex-info (str "Insufficient SOL to operate, " + "please deposit 0.1 SOL on the node address:\n" address) {})) sys))))