Skip to content

Commit

Permalink
Remove duplcated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed May 22, 2024
1 parent 550d19f commit ce104a1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/status_im/constants.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@
(def ^:const path-ledger-live "m/44'/60'")
(def ^:const path-keepkey "m/44'/60'")

(def ^:const wallet-initial-derivation-path "m/44'/60'/0'/0/0")

(def ^:const path-default-wallet-keyword (keyword path-default-wallet))
(def ^:const path-whisper-keyword (keyword path-whisper))
(def ^:const path-wallet-root-keyword (keyword path-wallet-root))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
(let [seed-phrase (-> db :wallet :ui :create-account :new-keypair :seed-phrase)]
{:fx [[:effects.wallet/create-account-from-mnemonic
{:mnemonic-phrase (security/safe-unmask-data seed-phrase)
:paths [constants/wallet-initial-derivation-path]
:paths [constants/path-default-wallet]
:on-success (fn [new-account-data]
(rf/dispatch [:wallet/store-account-generated
{:new-account-data new-account-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
props [{:keypair-name "test-keypair"}]
expected-effects [[:effects.wallet/create-account-from-mnemonic
{:mnemonic-phrase "test-secret"
:paths [constants/wallet-initial-derivation-path]}]]
:paths [constants/path-default-wallet]}]]
effects (events/generate-account-for-keypair {:db db} props)]
(is (match?
(update-in effects [:fx 0 1] dissoc :on-success)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
:wallet false
:chat false
:type :seed
:path constants/wallet-initial-derivation-path
:path constants/path-default-wallet
:public-key (:publicKey account-to-create)
:name account-name
:emoji emoji
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
{:account-color @account-color
:set-account-color set-account-color}]
[new-account-origin
{:derivation-path constants/wallet-initial-derivation-path
{:derivation-path constants/path-default-wallet
:customization-color customization-color
:keypair-title keypair-name}]]))))

Expand Down

0 comments on commit ce104a1

Please sign in to comment.