debugging wallet file issue

This commit is contained in:
Chris Troutner
2022-03-26 18:36:49 -07:00
parent 95e66efc2f
commit a4faecf56e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
+2 -2
View File
@@ -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.