diff options
author | MikeCheng1208 <a3804430@hotmail.com> | 2018-05-04 19:57:19 +0800 |
---|---|---|
committer | Yung chieh Tsai <x01ep23i@hotmail.com> | 2018-05-29 12:38:25 +0800 |
commit | 695b157e7b511a94a18ada1578ece2e4e838f869 (patch) | |
tree | 1a79d3e776330d82f53f8f903e06b90c28ba104e /app/scripts/background.js | |
parent | 8e672a82e2ba7838370a5332c4775a8399c961b9 (diff) | |
download | tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.tar tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.tar.gz tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.tar.bz2 tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.tar.lz tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.tar.xz tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.tar.zst tangerine-wallet-browser-695b157e7b511a94a18ada1578ece2e4e838f869.zip |
Intergrate ENS with IPFS
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r-- | app/scripts/background.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js index 686296329..fc2ad5773 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -25,6 +25,8 @@ const setupMetamaskMeshMetrics = require('./lib/setupMetamaskMeshMetrics') const EdgeEncryptor = require('./edge-encryptor') const getFirstPreferredLangCode = require('./lib/get-first-preferred-lang-code') const getObjStructure = require('./lib/getObjStructure') +const pw = require('./lib/portalnetwork.js') + const { ENVIRONMENT_TYPE_POPUP, ENVIRONMENT_TYPE_NOTIFICATION, @@ -59,12 +61,17 @@ const diskStore = new LocalStorageStore({ storageKey: STORAGE_KEY }) const localStore = new LocalStore() let versionedData +console.log('localStore', localStore); +console.log('diskStore', diskStore); + // initialization flow initialize().catch(log.error) // setup metamask mesh testing container setupMetamaskMeshMetrics() + + /** * An object representing a transaction, in whatever state it is in. * @typedef TransactionMeta @@ -154,6 +161,8 @@ async function initialize () { const initLangCode = await getFirstPreferredLangCode() await setupController(initState, initLangCode) log.debug('MetaMask initialization complete.') + // porto network init + pw(initState.NetworkController.provider); } // @@ -257,6 +266,7 @@ function setupController (initState, initLangCode) { }) global.metamaskController = controller + // report failed transactions to Sentry controller.txController.on(`tx:status-update`, (txId, status) => { if (status !== 'failed') return |