mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
Adding more debugging
This commit is contained in:
@@ -86,7 +86,7 @@ class WalletAdapter {
|
|||||||
|
|
||||||
// Wait for wallet to initialize.
|
// Wait for wallet to initialize.
|
||||||
await this.bchWallet.walletInfoPromise
|
await this.bchWallet.walletInfoPromise
|
||||||
console.log('BCH wallet initialized.')
|
console.log(`BCH wallet initialized. Wallet address: ${this.bchWallet.walletInfo.cashAddress}`)
|
||||||
|
|
||||||
return this.bchWallet
|
return this.bchWallet
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ class OfferUseCases {
|
|||||||
|
|
||||||
return true
|
return true
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error in ensureFunds()')
|
console.error('Error in offer/index.js/ensureFunds()')
|
||||||
|
|
||||||
// Debugging
|
// Debugging
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const BchTokenSweep = require('bch-token-sweep/index')
|
|||||||
const WalletAdapter = require('../../src/adapters/wallet')
|
const WalletAdapter = require('../../src/adapters/wallet')
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
const EMTPY_ADDR_CUTOFF = 5
|
const EMTPY_ADDR_CUTOFF = 15
|
||||||
|
|
||||||
async function sweepFunds () {
|
async function sweepFunds () {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user