mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
linting
This commit is contained in:
@@ -67,10 +67,10 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
bch-dex:
|
bch-dex:
|
||||||
#build:
|
build:
|
||||||
# context: ./bch-dex/
|
context: ./bch-dex/
|
||||||
# dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: christroutner/bch-dex-rpi:v1.9.6
|
#image: christroutner/bch-dex-rpi:v1.9.8
|
||||||
container_name: bch-dex
|
container_name: bch-dex
|
||||||
environment:
|
environment:
|
||||||
CONSUMER_URL: 'https://free-bch.fullstack.cash'
|
CONSUMER_URL: 'https://free-bch.fullstack.cash'
|
||||||
|
|||||||
@@ -64,6 +64,8 @@ async function sweepNfts () {
|
|||||||
if (thisToken.tokenType === 65) {
|
if (thisToken.tokenType === 65) {
|
||||||
console.log(`NFT ${thisToken.ticker} (${thisToken.name}) found. Sweeping to ${rootAddr}`)
|
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.
|
// Send BCH to the child address, to pay for transaction fees.
|
||||||
const receiver1 = [{
|
const receiver1 = [{
|
||||||
address: cashAddress,
|
address: cashAddress,
|
||||||
@@ -76,6 +78,8 @@ async function sweepNfts () {
|
|||||||
console.log('Waiting for indexers to update...')
|
console.log('Waiting for indexers to update...')
|
||||||
await bchjs.Util.sleep(120000)
|
await bchjs.Util.sleep(120000)
|
||||||
|
|
||||||
|
await walletChild.initialize()
|
||||||
|
|
||||||
// Send NFT to root address.
|
// Send NFT to root address.
|
||||||
const receiver2 = [{
|
const receiver2 = [{
|
||||||
address: rootAddr,
|
address: rootAddr,
|
||||||
|
|||||||
Reference in New Issue
Block a user