diff options
author | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-05 14:38:14 +0800 |
---|---|---|
committer | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-10 18:53:27 +0800 |
commit | 70020380fbce25c2dd6c36734b4b77f2a5d69b78 (patch) | |
tree | 16fa2871f8e62068d8fbc8173d0bb73c6ee0913c /app | |
parent | c941911cf37a9baff8f40023b57ab413190b1a46 (diff) | |
download | dexon-wallet-70020380fbce25c2dd6c36734b4b77f2a5d69b78.tar.gz dexon-wallet-70020380fbce25c2dd6c36734b4b77f2a5d69b78.tar.zst dexon-wallet-70020380fbce25c2dd6c36734b4b77f2a5d69b78.zip |
Update coin type
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/seed-phrase-verifier.js | 4 | ||||
-rw-r--r-- | app/scripts/metamask-controller.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/lib/seed-phrase-verifier.js b/app/scripts/lib/seed-phrase-verifier.js index 3b5afb80..a1a3ebde 100644 --- a/app/scripts/lib/seed-phrase-verifier.js +++ b/app/scripts/lib/seed-phrase-verifier.js @@ -1,5 +1,6 @@ -const KeyringController = require('eth-keyring-controller') +const KeyringController = require('@dexon-foundation/dexon-keyring-controller') const log = require('loglevel') +const hdPathString = `m/44'/237'/0'/0` const seedPhraseVerifier = { @@ -29,6 +30,7 @@ const seedPhraseVerifier = { const opts = { mnemonic: seedWords, numberOfAccounts: createdAccounts.length, + hdPath: hdPathString, } const keyring = new Keyring(opts) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 963ffefa..19faffa2 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -20,7 +20,7 @@ const createOriginMiddleware = require('./lib/createOriginMiddleware') const createLoggerMiddleware = require('./lib/createLoggerMiddleware') const createProviderMiddleware = require('./lib/createProviderMiddleware') const setupMultiplex = require('./lib/stream-utils.js').setupMultiplex -const KeyringController = require('eth-keyring-controller') +const KeyringController = require('@dexon-foundation/dexon-keyring-controller') const NetworkController = require('./controllers/network') const PreferencesController = require('./controllers/preferences') const CurrencyController = require('./controllers/currency') |