fix: wallet file checking

This commit is contained in:
Sérgio Salgado 2022-02-03 22:08:44 +00:00
parent 2da14d64b3
commit 7a4aba4869
2 changed files with 3 additions and 4 deletions

View file

@ -42,8 +42,7 @@ function handleError (error) {
{
if (
fs.existsSync(path.resolve(walletDir, 'Wallet')) &&
fs.existsSync(path.resolve(walletDir, 'Wallet.keys')) &&
fs.existsSync(path.resolve(walletDir, 'Wallet.address.txt'))
fs.existsSync(path.resolve(walletDir, 'Wallet.keys'))
) {
logger.debug('Found wallet! Opening wallet...')
return openWallet()