@@ -7,7 +7,7 @@ import FixtureSubprovider from 'web3-provider-engine/subproviders/fixture.js';
7
7
import RpcSubprovider from 'web3-provider-engine/subproviders/rpc.js' ;
8
8
import HookedWalletSubprovider from 'web3-provider-engine/subproviders/hooked-wallet-ethtx.js' ;
9
9
import networkConfig from './networkConfig' ;
10
- import { encryptMnemonic , encryptSecret , decryptMnemonic , decryptSecret } from './utils/encryption' ;
10
+ import { encryptMnemonic , encryptSecret , decryptMnemonic , decryptSecret } from './utils/encryption' ;
11
11
12
12
const STORAGE_SESSION_KEY = 'wallet-session' ;
13
13
const MNEMONIC_PATH = "m/44'/60'/0'/0/0" ;
@@ -23,7 +23,7 @@ function getEncryptedMnemonic() {
23
23
return Error ( 'User not logged in' ) ;
24
24
}
25
25
26
- const { encryptedMnemonic} = JSON . parse ( data ) ;
26
+ const { encryptedMnemonic } = JSON . parse ( data ) ;
27
27
return encryptedMnemonic ;
28
28
}
29
29
@@ -33,7 +33,7 @@ function getEncryptedMnemonic() {
33
33
* @returns {Promise<String> } password
34
34
*/
35
35
async function promptPassword ( ) {
36
- const { value : password } = await Swal . fire ( {
36
+ const { value : password } = await Swal . fire ( {
37
37
title : 'Enter your password' ,
38
38
input : 'password' ,
39
39
inputPlaceholder : 'Enter your password' ,
@@ -160,7 +160,7 @@ export default class SpringWallet {
160
160
. deriveChild ( 0 )
161
161
. getWallet ( ) ;
162
162
const address = wallet . getChecksumAddressString ( ) ;
163
- return { address, encryptedMnemonic} ;
163
+ return { address, encryptedMnemonic } ;
164
164
}
165
165
166
166
/**
@@ -181,7 +181,7 @@ export default class SpringWallet {
181
181
* @param {String } encryptedMnemonic
182
182
*/
183
183
static setWalletSession ( address , encryptedMnemonic ) {
184
- localStorage . setItem ( STORAGE_SESSION_KEY , JSON . stringify ( { address, encryptedMnemonic} ) ) ;
184
+ localStorage . setItem ( STORAGE_SESSION_KEY , JSON . stringify ( { address, encryptedMnemonic } ) ) ;
185
185
}
186
186
187
187
/**
@@ -240,4 +240,4 @@ export default class SpringWallet {
240
240
}
241
241
}
242
242
243
- export { decryptMnemonic } ;
243
+ export { decryptMnemonic } ;
0 commit comments