Skip to content

Commit

Permalink
Fix use-create-ata-and-stake
Browse files Browse the repository at this point in the history
it should return system
  • Loading branch information
jeisses committed Nov 29, 2023
1 parent e3d7130 commit 1386bcf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/nosana_node/nosana.clj
Original file line number Diff line number Diff line change
Expand Up @@ -784,13 +784,13 @@
(throw (ex-info "Could not create NOS ATA" {}))
nil)))
(when (not (sol/get-account-data (sol/get-nos-stake-pda (:address conf)) (:network conf)))
;; create stake with 0 NOS and 364 days duration
(try
(open-stake conf 0 (* 24 60 60 364))
(catch Exception e
(throw (ex-info "Could not create stake" {}))
nil))
sys))
;; create stake with 0 NOS and 364 days duration
(try
(open-stake conf 0 (* 24 60 60 364))
(catch Exception e
(throw (ex-info "Could not create stake" {}))
nil)))
sys)

(defn use-nosana
"Component that loads the Nosana config."
Expand Down

0 comments on commit 1386bcf

Please sign in to comment.