From a4faecf56ee049b5efc46efbdefeaf11d4bca37a Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sat, 26 Mar 2022 18:36:49 -0700 Subject: [PATCH] debugging wallet file issue --- src/adapters/index.js | 2 +- src/adapters/wallet.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adapters/index.js b/src/adapters/index.js index 0007287..3501e77 100644 --- a/src/adapters/index.js +++ b/src/adapters/index.js @@ -77,7 +77,7 @@ class Adapters { // Open the wallet file const walletData = await this.wallet.openWallet() - // console.log('walletData: ', walletData) + console.log('walletData: ', walletData) // Instance the wallet. await this.wallet.instanceWallet(walletData, this.bchjs) diff --git a/src/adapters/wallet.js b/src/adapters/wallet.js index 210dc2a..5a187da 100644 --- a/src/adapters/wallet.js +++ b/src/adapters/wallet.js @@ -34,11 +34,11 @@ class WalletAdapter { // Try to open the wallet.json file. try { - // console.log('this.WALLET_FILE: ', this.WALLET_FILE) + console.log('this.WALLET_FILE: ', this.WALLET_FILE) walletData = await this.jsonFiles.readJSON(this.WALLET_FILE) } catch (err) { // Create a new wallet file if one does not already exist. - console.warn('Wallet file not found. Creating new wallet.json file.') + console.log('Wallet file not found. Creating new wallet.json file.') // Create a new wallet. // No-Update flag creates wallet without making any network calls.