mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 07:16:36 +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 importers from 'ethereumjs-wallet/thirdparty'
|
||||
import ethUtil from 'ethereumjs-util'
|
||||
@ -35,10 +36,7 @@ const accountImporter = {
|
||||
try {
|
||||
wallet = importers.fromEtherWallet(input, password)
|
||||
} catch (e) {
|
||||
console.log('Attempt to import as EtherWallet format failed, trying V3...')
|
||||
}
|
||||
|
||||
if (!wallet) {
|
||||
log.debug('Attempt to import as EtherWallet format failed, trying V3')
|
||||
wallet = Wallet.fromV3(input, password, true)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user