diff --git a/src/adapters/wallet.js b/src/adapters/wallet.js index 12b76e9..b1aba82 100644 --- a/src/adapters/wallet.js +++ b/src/adapters/wallet.js @@ -468,6 +468,7 @@ class WalletAdapter { async completeTx (hex, hdIndex) { try { // console.log('hex: ', hex) + console.log('completeTx() hdIndex: ', hdIndex) const bchjs = this.bchWallet.bchjs @@ -492,6 +493,8 @@ class WalletAdapter { // 'mainnet' // ) + console.log('completeTx() this.walletInfo: ', this.walletInfo) + // Get the keypair for the address used in the Order const keyPair = await this.getKeyPair(hdIndex) console.log(`maker keyPair: ${JSON.stringify(keyPair, null, 2)}`) diff --git a/src/use-cases/offer/index.js b/src/use-cases/offer/index.js index e35fe86..6c15d4f 100644 --- a/src/use-cases/offer/index.js +++ b/src/use-cases/offer/index.js @@ -514,7 +514,7 @@ class OfferUseCases { // This function is called by the P2WDB webhook REST API handler. When a // Counter Offer is passed to bch-dex by the P2WDB, the data is then passed - // to this function. It does due dilligence on the Counter Offer, then signs + // to this function. It does due diligence on the Counter Offer, then signs // and broadcasts the transaction to accept the Counter Offer. async acceptCounterOffer (offerData) { try { @@ -535,7 +535,7 @@ class OfferUseCases { let orderData = {} try { orderData = await this.orderUseCase.findOrderByUtxo(offerData) - // console.log(`orderData: ${JSON.stringify(orderData, null, 2)}`) + console.log(`orderData: ${JSON.stringify(orderData, null, 2)}`) } catch (err) { console.log('Order matching this Counter Offer is not managed by this instance of bch-dex. Skipping.') diff --git a/src/use-cases/order.js b/src/use-cases/order.js index 4606dc9..8d766f2 100644 --- a/src/use-cases/order.js +++ b/src/use-cases/order.js @@ -67,6 +67,7 @@ class OrderLib { await userWallet.initialize() // Specify the address to send payment. + console.log('userWallet.walletInfo: ', userWallet.walletInfo) entryObj.makerAddr = userWallet.walletInfo.cashAddress console.log('entryObj.makerAddr: ', entryObj.makerAddr) // console.log('entryObj.makerAddr: ', entryObj.makerAddr) diff --git a/util/users/getUsers.js b/util/users/getUsers.js index 56e1109..80b8681 100644 --- a/util/users/getUsers.js +++ b/util/users/getUsers.js @@ -1,6 +1,6 @@ import mongoose from 'mongoose' import config from '../../config/index.js' -import User from '../../src/models/users.js' +import User from '../../src/adapters/localdb/models/users.js' async function getUsers () { // Connect to the Mongo Database.