From 1c1169dd930637c6170828d8343204379bf12b0b Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 11 Sep 2022 14:41:56 -0700 Subject: [PATCH] linting --- production/rpi-docker/docker-compose.yml | 8 ++++---- production/scripts/sweep-nfts.js | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/production/rpi-docker/docker-compose.yml b/production/rpi-docker/docker-compose.yml index 8a5fca5..dfe77f4 100644 --- a/production/rpi-docker/docker-compose.yml +++ b/production/rpi-docker/docker-compose.yml @@ -67,10 +67,10 @@ services: restart: always bch-dex: - #build: - # context: ./bch-dex/ - # dockerfile: Dockerfile - image: christroutner/bch-dex-rpi:v1.9.6 + build: + context: ./bch-dex/ + dockerfile: Dockerfile + #image: christroutner/bch-dex-rpi:v1.9.8 container_name: bch-dex environment: CONSUMER_URL: 'https://free-bch.fullstack.cash' diff --git a/production/scripts/sweep-nfts.js b/production/scripts/sweep-nfts.js index 547e7b4..86d34c7 100644 --- a/production/scripts/sweep-nfts.js +++ b/production/scripts/sweep-nfts.js @@ -64,6 +64,8 @@ async function sweepNfts () { if (thisToken.tokenType === 65) { console.log(`NFT ${thisToken.ticker} (${thisToken.name}) found. Sweeping to ${rootAddr}`) + await walletRoot.initialize() + // Send BCH to the child address, to pay for transaction fees. const receiver1 = [{ address: cashAddress, @@ -76,6 +78,8 @@ async function sweepNfts () { console.log('Waiting for indexers to update...') await bchjs.Util.sleep(120000) + await walletChild.initialize() + // Send NFT to root address. const receiver2 = [{ address: rootAddr,