1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00

Clean up "JSON File" import strategy test output (#7855)

This commit is contained in:
Whymarrh Whitby 2020-01-17 19:59:47 -03:30 committed by GitHub
parent 7b35ea6400
commit 3448f34905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
} }