From 0912aadc1a0c3d24a9550ed063b6eeda4c87e0e3 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Fri, 19 Dec 2025 10:13:37 -0700 Subject: [PATCH] Updating integration test scripts --- package.json | 6 +++--- src/utxo.js | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f274687..85cf58b 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ "scripts": { "test": "export RESTURL=http://localhost:5942/v6 && c8 mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/", "test:integration": "npm run test:integration:local:noauth", - "test:integration:fullstack:free": "export RESTURL=http://bch.fullstack.cash/v6 && mocha --timeout 30000 test/integration/", - "test:integration:fullstack:x402": "export RESTURL=http://x402-bch.fullstack.cash/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 30000 test/integration/", - "test:integration:local:noauth": "export RESTURL=http://192.168.1.115:5942/v6 && mocha --timeout 30000 test/integration/", + "test:integration:fullstack:free": "export RESTURL=https://bch.fullstack.cash/v6 && mocha --timeout 60000 test/integration/", + "test:integration:fullstack:x402": "export RESTURL=https://x402-bch.fullstack.cash/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 30000 test/integration/", + "test:integration:local:noauth": "export RESTURL=http://localhost:5942/v6 && mocha --timeout 30000 test/integration/", "test:integration:local:auth": "export RESTURL=http://192.168.1.115:5942/v6 && export BCHJSBEARERTOKEN=temp01 && mocha --timeout 30000 test/integration/", "test:integration:decatur": "export RESTURL=http://192.168.2.127:5942/v6 && mocha --timeout 30000 test/integration/", "test:integration:x402": "export RESTURL=http://localhost:5942/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 30000 test/integration/", diff --git a/src/utxo.js b/src/utxo.js index 68d55f4..c54d9d7 100644 --- a/src/utxo.js +++ b/src/utxo.js @@ -20,6 +20,12 @@ class UTXO { this.psfSlpIndexer = new PsfSlpIndexer(config) this.BigNumber = BigNumber this.blockchain = new Blockchain(config) + + // Bind 'this' object to all subfunctions. + this.get = this.get.bind(this) + this.hydrateTokenData = this.hydrateTokenData.bind(this) + this.findBiggestUtxo = this.findBiggestUtxo.bind(this) + this.isValid = this.isValid.bind(this) } /**