mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 13:47:06 +01:00
Clean up "JSON File" import strategy test output (#7855)
This commit is contained in:
parent
7b35ea6400
commit
3448f34905
@ -1,3 +1,4 @@
|
|||||||
|
import log from 'loglevel'
|
||||||
import Wallet from 'ethereumjs-wallet'
|
import Wallet from 'ethereumjs-wallet'
|
||||||
import importers from 'ethereumjs-wallet/thirdparty'
|
import importers from 'ethereumjs-wallet/thirdparty'
|
||||||
import ethUtil from 'ethereumjs-util'
|
import ethUtil from 'ethereumjs-util'
|
||||||
@ -35,10 +36,7 @@ const accountImporter = {
|
|||||||
try {
|
try {
|
||||||
wallet = importers.fromEtherWallet(input, password)
|
wallet = importers.fromEtherWallet(input, password)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('Attempt to import as EtherWallet format failed, trying V3...')
|
log.debug('Attempt to import as EtherWallet format failed, trying V3')
|
||||||
}
|
|
||||||
|
|
||||||
if (!wallet) {
|
|
||||||
wallet = Wallet.fromV3(input, password, true)
|
wallet = Wallet.fromV3(input, password, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user